improved macro in Makefile