Post thumbnail of Makefile breaks when making targets of another Makefile
30 December 2009
Continue reading Makefile breaks when making targets of another Makefile

Makefile breaks when making targets of another Makefile

In GNU’s Make manual, there’s a description of how to use one Makefile to call targets of another Makefile. You have to use $(MAKE) in order for it to work properly. I’ve found one little snag that’s not mentioned. If my target name is the same as the directory name where the other Makefile is, it will never work. It always says it’s up to date! If I change the target name, it works fine.

Powered by Wordpress   |   Lunated designed by ZenVerse