[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Avoid generation of include files when doing "make clean"
From: |
Warlich, Christof |
Subject: |
Avoid generation of include files when doing "make clean" |
Date: |
Wed, 4 Apr 2012 12:20:07 +0200 |
Hi,
please consider the following Makefile:
-include xxx.inc
xxx.inc: ; echo 'dosomething: ; touch $$@'<mailto:$$@'> >$@
.PHONY: clean
clean: ; rm -f xxx.inc dosomething
It works fine when I call 'make' and then 'make clean'. But when I call 'make
clean' a second time, it generated the include file first, before deleting it
right afterwards. Does anyone have an idea how this can be avoided?
Many thanks for any suggestions,
Chris
- Avoid generation of include files when doing "make clean",
Warlich, Christof <=