[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Conditionally run "-include" in a rule?
From: |
Matt England |
Subject: |
Re: Conditionally run "-include" in a rule? |
Date: |
Sat, 11 Mar 2006 14:35:16 -0600 |
For the record (in case someone references the code in this email archive
thread later), the following is a copy of the working code I have running
in my modified core Makefile.
-Matt
##
## Only make the .d files if we are not running special
## makefile targets like 'clean' and other, .PHONY targets.
##
NINCLUDE_TARGETS := clean \
distclean \
cleanall \
cleanandfiles \
cleantmpdfiles \
cleanendtgts \
printvar \
printvar2 \
cleanpkg
ifeq ($(strip $(filter $(NINCLUDE_TARGETS),$(MAKECMDGOALS))),)
-include $(ALL_DFILES)
endif