restored Makefile functionality