removed unnecessary clean logic due to changes with dependencies
authorPatrik Gornicz <Gornicz.P@gmail.com>
Fri, 18 Sep 2009 02:47:54 +0000 (22:47 -0400)
committerPatrik Gornicz <Gornicz.P@gmail.com>
Fri, 18 Sep 2009 02:47:54 +0000 (22:47 -0400)
Makefile
Makefile.d/cleanrules.mk
lists.mk
rules.mk
targets.mk

index aa90914..e8caeea 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -29,8 +29,6 @@ include physics/${G_DIRMK}
 
 include ${G_RULESMK}
 
-# Do not include deps files when doing a clean operation
-ifeq ($(filter ${L_CLEANCMDS},${MAKECMDGOALS}),)
-    -include ${L_DEPS}
-endif
+# Do not warn or error if not found, dependencies will get created with the object files
+-include ${L_DEPS}
 
index a609022..fb37bd4 100644 (file)
@@ -3,28 +3,24 @@
 #
 # Requires T to be set to the desired suffix
 
-L_CLEANCMDS +=  cleanbin-$T
 cleanbin:       cleanbin-$T
 .PHONY:         cleanbin-$T
 cleanbin-$T: CLEANTARGET := ${BINDIR}
 cleanbin-$T:
        ${cmd-rmrec}
 
-L_CLEANCMDS +=  cleanobjs-$T
 cleanobjs:      cleanobjs-$T
 .PHONY:         cleanobjs-$T
 cleanobjs-$T: CLEANTARGET := ${OBJSDIR}
 cleanobjs-$T:
        ${cmd-rmrec}
 
-L_CLEANCMDS +=  cleandeps-$T
 cleandeps:      cleandeps-$T
 .PHONY:         cleandeps-$T
 cleandeps-$T: CLEANTARGET := ${DEPSDIR}
 cleandeps-$T:
        ${cmd-rmrec}
 
-L_CLEANCMDS +=  clean-$T
 clean:          clean-$T
 .PHONY:         clean-$T
 clean-$T: cleanbin-$T cleanobjs-$T cleandeps-$T
index 15bec12..9776102 100644 (file)
--- a/lists.mk
+++ b/lists.mk
@@ -1,5 +1,4 @@
 
-L_CLEANCMDS := # empty
 L_DEPS      := # empty
 
 L_BLDDIRS   := # empty
index b33a037..0c18b80 100644 (file)
--- a/rules.mk
+++ b/rules.mk
@@ -30,8 +30,8 @@ endef
 define cmd-cpp_to_obj_and_dep
   ${Q1s}${PRNTLOG} "${CXX}" "$@" ${Q1e}
   ${Q2s}${PRNTFMT} "${CXX}" "$@" ${Q2e}
-  ${Q3s}${CXX} -c $< -o $@ -MF ${@:${OBJSDIR}%.o=${DEPSDIR}%.d} ${CXXFLAGS} ${INCFLAGS} -MMD -MQ $@ ${Q3e}
-  ${Q4s}${CXX} -c $< -o $@ -MF ${@:${OBJSDIR}%.o=${DEPSDIR}%.d} ${CXXFLAGS} ${INCFLAGS} -MMD -MQ $@ ${Q4e}
+  ${Q3s}${CXX} -c $< -o $@ -MMD -MF ${@:${OBJSDIR}%.o=${DEPSDIR}%.d} ${CXXFLAGS} ${INCFLAGS} ${Q3e}
+  ${Q4s}${CXX} -c $< -o $@ -MMD -MF ${@:${OBJSDIR}%.o=${DEPSDIR}%.d} ${CXXFLAGS} ${INCFLAGS} ${Q4e}
 endef
 
 
index 4acf1b6..0246986 100644 (file)
@@ -37,19 +37,15 @@ G_DEPS_PHYSICS := deps-${G_PHYSICS}
 .PHONY: ${G_DEPS_PHYSICS}
 
 
-L_CLEANCMDS +=  cleanbin
 .PHONY:         cleanbin
 cleanbin:
 
-L_CLEANCMDS +=  cleanobjs
 .PHONY:         cleanobjs
 cleanobjs:
 
-L_CLEANCMDS +=  cleandeps
 .PHONY:         cleandeps
 cleandeps:
 
-L_CLEANCMDS +=  clean
 .PHONY:         clean
 clean: cleanbin cleanobjs cleandeps