# Strange GNU make behavior? # # Assume that: # - there is a file real.c in the directory, # - but there is no file fake.c in the directory # # Then make complains saying: # # make: *** No rule to make target `fake.c', needed by `fake.depend'. Stop. # # But if we remove fake.c from the prerequisites of target dummy-fake, then # everything works fine (fake.depend is ignored since we can't build it, # which is what we wanted). # # This is odd, since the rule "dummy-fake: fake.c" isn't used at all all: dummy-real dummy-real: real.c dummy-fake: fake.c %.depend : %.c touch $@ # Dependencies -include real.depend -include fake.depend