TARGETS= smh-ac415 spartan6 #ep4ce6 fish:smh-ac415 default: ${TARGETS:%=build_%/hp_lcd_driver.svf} smh-ac415: build_smh-ac415/hp_lcd_driver.svf spartan6: build_spartan6/hp_lcd_driver.svf build_%/hp_lcd_driver.svf: dummy ${MAKE} -f ${@:build_%/hp_lcd_driver.svf=%}.mk clean: for i in ${TARGETS}; do ${MAKE} -f $$i.mk $@; done dummy: