Is there any way to execute a fake file dependency if this file does not exist?
If the file does not have a fake dependency, it works and only executes the content of this rule. But if I add a fake target as a dependency, it continues to execute the dependency rule and the existing file generation rule.
I simplified my Makefile so you can see my problem:
.PHONY: phonytarget all clean all: $(CURDIR)/aa @echo done $(CURDIR)/aa: phonytarget @touch $@ phonytarget: @echo what the heck is wrong with you
dependencies makefile
phschoen
source share