makefile: fix missing 'endif'