fix makefile logic [skip ci]