Fix conditions in Makefile