GNU make: Execute target but take dependency from file
问题 I want the rules of a target to be executed but all dependent targets shall regard this target as satisfied. How can I achieve this? Example: $(NETWORK_SHARE)/foo.log: @echo Warning: server offline, still continue ... @exit 0 foo.csv: $(NETWORK_SHARE)/foo.log @echo Long export from a (different) server @echo sleep 20 @echo foo > $@ If $(NETWORK_SHARE)/foo.log exists: foo.csv shall be rebuilt if $(NETWORK_SHARE)/foo.log is newer than foo.csv; otherwise nothing should happen (default) If $