fix: stop including dep files in the depfile generation stage. Remove other unnecessary stuff from RESOURCE_DEPS
--- a/sbsv2/raptor/lib/flm/resource.flm Wed Apr 14 17:43:15 2010 +0100
+++ b/sbsv2/raptor/lib/flm/resource.flm Thu Apr 15 18:47:48 2010 +0100
@@ -171,11 +171,13 @@
$$(DEPENDENCY_CORRECTOR) >$$@ \
$(call endrule,resourcedependencies)
+ ifeq "$(MAKEFILE_GROUP)" "RESOURCE"
$(1): $(1).d
$(call startrule,resourcepreprocess,FORCESUCCESS) \
$(GNUCPP) -C -DLANGUAGE_$(3) -DLANGUAGE_$(subst sc,SC,$(3)) $(call makemacrodef,-D,$(MMPDEFS))\
$(CPPOPT) $(SOURCE) -o $$@ \
$(call endrule,resourcepreprocess)
+ endif
CLEANTARGETS:= $$(CLEANTARGETS) $(1)
@@ -185,7 +187,7 @@
CLEANTARGETS:=$$(CLEANTARGETS) $(DEPENDFILENAME)
ifneq "$(DEPENDFILE)" ""
ifeq "$(filter %CLEAN,$(call uppercase,$(MAKECMDGOALS)))" ""
- ifeq "$(filter RESOURCE_DEPS,$(call uppercase,$(MAKECMDGOALS)))" ""
+ ifeq "$(MAKEFILE_GROUP)" "RESOURCE"
-include $(DEPENDFILE)
endif
endif
@@ -207,8 +209,6 @@
RESOURCE:: $2
## perform additional copies of binaries
#
- # Only certain builds require further copies of the generated resource binaries
- #
$(2): $(1)
$(call startrule,resourcecopy,FORCESUCCESS) \
$(GNUCP) $$< $$@ \
@@ -299,7 +299,10 @@
# generate a resource file for each language
# For sc we generate $(RESBASE).rsc and define LANGUAGE_SC and LANGUAGE_sc.
$(foreach L,$(LANGUAGES:SC=sc),$(eval $(call preprocessresource,$(INTERBASE)_$(L).rpp,$(INTERBASE).r$(L),$(L))))
- $(foreach L,$(LANGUAGES:SC=sc),$(eval $(call generateresource,$(INTERBASE).r$(L),$(INTERBASE)_$(L).rpp,$(L))))
+
+ ifeq "$(MAKEFILE_GROUP)" "RESOURCE"
+ $(foreach L,$(LANGUAGES:SC=sc),$(eval $(call generateresource,$(INTERBASE).r$(L),$(INTERBASE)_$(L).rpp,$(L))))
+ endif
else
# No resources are going to be made so unless we specifically ask for it, there will be no
# preprocessed file from which to create the header: