Hello, I'm trying to execute a single target calling "make cleanlists". This target has no prerequisites and should be executed (in my understanding) immediately without touching other rules.
.PHONY: cleanlists
cleanlists:
@echo cleaning source and header lists ..
@rm -f sourcelist.mk
@rm -f headerlist.mk
@echo done.
But in case, that those two files don't exist, other rules having those files as prerequisites are checked and finally lead to regeneration of them before executing the 'cleanlists' target.
Is there any simple way forcing make to avoid this behaviour?
Thanks