GNU Make: details regarding intermediate files

Check this out! Suppose I have this Makefile : a : b touch $ @ b : touch $ @ # A common chain of build steps %-GENERATED.c : %-generate touch $ @ %.o : %.c touch $ @ %.so : %-GENERATED.o touch $ @ xxx-GENERATED.o : CFLAGS += adsf # Imitates .d files created with "gcc -MMD". Does not exist on the initial build ifneq ($( wildcard xxx.so),) xxx-GENERATED.o : xxx-GENERATED.c endif This is all very…