diff --git a/Cleanfile b/Cleanfile index 93cdc2012d..77d4011ff3 100644 --- a/Cleanfile +++ b/Cleanfile @@ -62,3 +62,7 @@ ifdef _SDK_SRC_ROOT $(call rm,*.ews) endif endif + +$(MAKEFILE_LIST): ; +$(SOURCES): ; +$(RESOURCES): ; diff --git a/Makefile b/Makefile index 11f5b853f8..1f994e20fc 100644 --- a/Makefile +++ b/Makefile @@ -553,9 +553,9 @@ distclean: bindingsdistclean DOC = doc -Makefile: ; -crossplatform.mk: ; -default.cf: ; +$(MAKEFILE_LIST): ; +$(SOURCES): ; +$(RESOURCES): ; BINARIES = \ ecere/obj/release.$(PLATFORM)$(COMPILER_SUFFIX)$(DEBUG_SUFFIX)/$(LP)ecere$(SOV) \ diff --git a/audio/Makefile b/audio/Makefile index 332655dc77..adb8fe6693 100644 --- a/audio/Makefile +++ b/audio/Makefile @@ -248,6 +248,6 @@ wipeclean: distclean: $(_MAKE) -f $(_CF_DIR)Cleanfile distclean distclean_all_subdirs -Makefile: ; -$(_CF_DIR)crossplatform.mk: ; -$(_CF_DIR)default.cf: ; +$(MAKEFILE_LIST): ; +$(SOURCES): ; +$(RESOURCES): ; diff --git a/compiler/Makefile b/compiler/Makefile index e7fb7a914c..ba71429750 100644 --- a/compiler/Makefile +++ b/compiler/Makefile @@ -64,6 +64,6 @@ wipeclean: distclean: $(_MAKE) -f $(_CF_DIR)Cleanfile distclean distclean_all_subdirs -Makefile: ; -$(_CF_DIR)crossplatform.mk: ; -$(_CF_DIR)default.cf: ; +$(MAKEFILE_LIST): ; +$(SOURCES): ; +$(RESOURCES): ; diff --git a/compiler/bootstrap/Makefile b/compiler/bootstrap/Makefile index f09e0d614d..b5121cb76a 100644 --- a/compiler/bootstrap/Makefile +++ b/compiler/bootstrap/Makefile @@ -70,6 +70,6 @@ wipeclean: distclean: $(_MAKE) -f $(_CF_DIR)Cleanfile distclean distclean_all_subdirs -Makefile: ; -$(_CF_DIR)crossplatform.mk: ; -$(_CF_DIR)default.cf: ; +$(MAKEFILE_LIST): ; +$(SOURCES): ; +$(RESOURCES): ; diff --git a/compiler/bootstrap/ecc/Makefile b/compiler/bootstrap/ecc/Makefile index f953ee80fe..669b45990b 100644 --- a/compiler/bootstrap/ecc/Makefile +++ b/compiler/bootstrap/ecc/Makefile @@ -128,6 +128,6 @@ wipeclean: distclean: $(_MAKE) -f $(_CF_DIR)Cleanfile distclean distclean_all_subdirs -Makefile: ; -$(_CF_DIR)crossplatform.mk: ; -$(_CF_DIR)default.cf: ; +$(MAKEFILE_LIST): ; +$(SOURCES): ; +$(RESOURCES): ; diff --git a/compiler/bootstrap/ecere/Makefile b/compiler/bootstrap/ecere/Makefile index f1a0d171a5..dbf8735d78 100644 --- a/compiler/bootstrap/ecere/Makefile +++ b/compiler/bootstrap/ecere/Makefile @@ -223,6 +223,6 @@ wipeclean: distclean: $(_MAKE) -f $(_CF_DIR)Cleanfile distclean distclean_all_subdirs -Makefile: ; -$(_CF_DIR)crossplatform.mk: ; -$(_CF_DIR)default.cf: ; +$(MAKEFILE_LIST): ; +$(SOURCES): ; +$(RESOURCES): ; diff --git a/compiler/bootstrap/ecp/Makefile b/compiler/bootstrap/ecp/Makefile index 6e92b8cf2a..eb3b1aad6c 100644 --- a/compiler/bootstrap/ecp/Makefile +++ b/compiler/bootstrap/ecp/Makefile @@ -128,6 +128,6 @@ wipeclean: distclean: $(_MAKE) -f $(_CF_DIR)Cleanfile distclean distclean_all_subdirs -Makefile: ; -$(_CF_DIR)crossplatform.mk: ; -$(_CF_DIR)default.cf: ; +$(MAKEFILE_LIST): ; +$(SOURCES): ; +$(RESOURCES): ; diff --git a/compiler/bootstrap/ecs/Makefile b/compiler/bootstrap/ecs/Makefile index b70e9c4da3..69fcc8f6c1 100644 --- a/compiler/bootstrap/ecs/Makefile +++ b/compiler/bootstrap/ecs/Makefile @@ -128,6 +128,6 @@ wipeclean: distclean: $(_MAKE) -f $(_CF_DIR)Cleanfile distclean distclean_all_subdirs -Makefile: ; -$(_CF_DIR)crossplatform.mk: ; -$(_CF_DIR)default.cf: ; +$(MAKEFILE_LIST): ; +$(SOURCES): ; +$(RESOURCES): ; diff --git a/compiler/bootstrap/libec/Makefile b/compiler/bootstrap/libec/Makefile index 781e4c8f57..d3a0020e60 100644 --- a/compiler/bootstrap/libec/Makefile +++ b/compiler/bootstrap/libec/Makefile @@ -198,6 +198,6 @@ wipeclean: distclean: $(_MAKE) -f $(_CF_DIR)Cleanfile distclean distclean_all_subdirs -Makefile: ; -$(_CF_DIR)crossplatform.mk: ; -$(_CF_DIR)default.cf: ; +$(MAKEFILE_LIST): ; +$(SOURCES): ; +$(RESOURCES): ; diff --git a/compiler/ecc/Makefile b/compiler/ecc/Makefile index b61bf63753..a95215cdbc 100644 --- a/compiler/ecc/Makefile +++ b/compiler/ecc/Makefile @@ -175,6 +175,6 @@ wipeclean: distclean: $(_MAKE) -f $(_CF_DIR)Cleanfile distclean distclean_all_subdirs -Makefile: ; -$(_CF_DIR)crossplatform.mk: ; -$(_CF_DIR)default.cf: ; +$(MAKEFILE_LIST): ; +$(SOURCES): ; +$(RESOURCES): ; diff --git a/compiler/ecc/Makefile.bootstrap b/compiler/ecc/Makefile.bootstrap index d22390a310..8b747bab36 100644 --- a/compiler/ecc/Makefile.bootstrap +++ b/compiler/ecc/Makefile.bootstrap @@ -140,6 +140,6 @@ wipeclean: distclean: $(_MAKE) -f $(_CF_DIR)Cleanfile distclean distclean_all_subdirs -Makefile.bootstrap: ; -$(_CF_DIR)crossplatform.mk: ; -$(_CF_DIR)$(TARGET_PLATFORM)-$(COMPILER).cf: ; +$(MAKEFILE_LIST): ; +$(SOURCES): ; +$(RESOURCES): ; diff --git a/compiler/ecp/Makefile b/compiler/ecp/Makefile index a1bb681ec6..a0fa9909df 100644 --- a/compiler/ecp/Makefile +++ b/compiler/ecp/Makefile @@ -173,6 +173,6 @@ wipeclean: distclean: $(_MAKE) -f $(_CF_DIR)Cleanfile distclean distclean_all_subdirs -Makefile: ; -$(_CF_DIR)crossplatform.mk: ; -$(_CF_DIR)default.cf: ; +$(MAKEFILE_LIST): ; +$(SOURCES): ; +$(RESOURCES): ; diff --git a/compiler/ecp/Makefile.bootstrap b/compiler/ecp/Makefile.bootstrap index c7875f4862..ce8eb38575 100644 --- a/compiler/ecp/Makefile.bootstrap +++ b/compiler/ecp/Makefile.bootstrap @@ -142,6 +142,6 @@ wipeclean: distclean: $(_MAKE) -f $(_CF_DIR)Cleanfile distclean distclean_all_subdirs -Makefile.bootstrap: ; -$(_CF_DIR)crossplatform.mk: ; -$(_CF_DIR)$(TARGET_PLATFORM)-$(COMPILER).cf: ; +$(MAKEFILE_LIST): ; +$(SOURCES): ; +$(RESOURCES): ; diff --git a/compiler/ecs/Makefile b/compiler/ecs/Makefile index 171a7be307..d17b906854 100644 --- a/compiler/ecs/Makefile +++ b/compiler/ecs/Makefile @@ -173,6 +173,6 @@ wipeclean: distclean: $(_MAKE) -f $(_CF_DIR)Cleanfile distclean distclean_all_subdirs -Makefile: ; -$(_CF_DIR)crossplatform.mk: ; -$(_CF_DIR)default.cf: ; +$(MAKEFILE_LIST): ; +$(SOURCES): ; +$(RESOURCES): ; diff --git a/compiler/ecs/Makefile.bootstrap b/compiler/ecs/Makefile.bootstrap index f497fbe8d2..f545468a4c 100644 --- a/compiler/ecs/Makefile.bootstrap +++ b/compiler/ecs/Makefile.bootstrap @@ -140,6 +140,6 @@ wipeclean: distclean: $(_MAKE) -f $(_CF_DIR)Cleanfile distclean distclean_all_subdirs -Makefile.bootstrap: ; -$(_CF_DIR)crossplatform.mk: ; -$(_CF_DIR)$(TARGET_PLATFORM)-$(COMPILER).cf: ; +$(MAKEFILE_LIST): ; +$(SOURCES): ; +$(RESOURCES): ; diff --git a/compiler/libec/Makefile b/compiler/libec/Makefile index aa6641279a..b8dd010734 100644 --- a/compiler/libec/Makefile +++ b/compiler/libec/Makefile @@ -380,6 +380,6 @@ wipeclean: distclean: $(_MAKE) -f $(_CF_DIR)Cleanfile distclean distclean_all_subdirs -Makefile: ; -$(_CF_DIR)crossplatform.mk: ; -$(_CF_DIR)default.cf: ; +$(MAKEFILE_LIST): ; +$(SOURCES): ; +$(RESOURCES): ; diff --git a/compiler/libec/Makefile.bootstrap b/compiler/libec/Makefile.bootstrap index 7010ae15b5..03fffb15a5 100644 --- a/compiler/libec/Makefile.bootstrap +++ b/compiler/libec/Makefile.bootstrap @@ -269,6 +269,6 @@ wipeclean: distclean: $(_MAKE) -f $(_CF_DIR)Cleanfile distclean distclean_all_subdirs -Makefile.bootstrap: ; -$(_CF_DIR)crossplatform.mk: ; -$(_CF_DIR)$(TARGET_PLATFORM)-$(COMPILER).cf: ; +$(MAKEFILE_LIST): ; +$(SOURCES): ; +$(RESOURCES): ; diff --git a/deps/Makefile b/deps/Makefile index 8eb63be972..05d66e3765 100644 --- a/deps/Makefile +++ b/deps/Makefile @@ -86,6 +86,6 @@ wipeclean: distclean: $(_MAKE) -f $(_CF_DIR)Cleanfile distclean distclean_all_subdirs -Makefile: ; -$(_CF_DIR)crossplatform.mk: ; -$(_CF_DIR)default.cf: ; +$(MAKEFILE_LIST): ; +$(SOURCES): ; +$(RESOURCES): ; diff --git a/deps/freetype-2.3.12/Makefile b/deps/freetype-2.3.12/Makefile index 281f385a6a..7794bd3a72 100644 --- a/deps/freetype-2.3.12/Makefile +++ b/deps/freetype-2.3.12/Makefile @@ -327,6 +327,6 @@ wipeclean: distclean: $(_MAKE) -f $(_CF_DIR)Cleanfile distclean distclean_all_subdirs -Makefile: ; -$(_CF_DIR)crossplatform.mk: ; -$(_CF_DIR)default.cf: ; +$(MAKEFILE_LIST): ; +$(SOURCES): ; +$(RESOURCES): ; diff --git a/deps/jpeg-9a/Makefile b/deps/jpeg-9a/Makefile index 5c8fc48fa3..5d02db97d5 100644 --- a/deps/jpeg-9a/Makefile +++ b/deps/jpeg-9a/Makefile @@ -367,6 +367,6 @@ wipeclean: distclean: $(_MAKE) -f $(_CF_DIR)Cleanfile distclean distclean_all_subdirs -Makefile: ; -$(_CF_DIR)crossplatform.mk: ; -$(_CF_DIR)default.cf: ; +$(MAKEFILE_LIST): ; +$(SOURCES): ; +$(RESOURCES): ; diff --git a/deps/libffi-3.0.11/Makefile b/deps/libffi-3.0.11/Makefile index dcee850d7f..3e0449722e 100644 --- a/deps/libffi-3.0.11/Makefile +++ b/deps/libffi-3.0.11/Makefile @@ -145,6 +145,6 @@ wipeclean: distclean: $(_MAKE) -f $(_CF_DIR)Cleanfile distclean distclean_all_subdirs -Makefile: ; -$(_CF_DIR)crossplatform.mk: ; -$(_CF_DIR)default.cf: ; +$(MAKEFILE_LIST): ; +$(SOURCES): ; +$(RESOURCES): ; diff --git a/deps/libpng-1.6.12/Makefile b/deps/libpng-1.6.12/Makefile index 0463cdbaec..b131633048 100644 --- a/deps/libpng-1.6.12/Makefile +++ b/deps/libpng-1.6.12/Makefile @@ -205,6 +205,6 @@ wipeclean: distclean: $(_MAKE) -f $(_CF_DIR)Cleanfile distclean distclean_all_subdirs -Makefile: ; -$(_CF_DIR)crossplatform.mk: ; -$(_CF_DIR)default.cf: ; +$(MAKEFILE_LIST): ; +$(SOURCES): ; +$(RESOURCES): ; diff --git a/deps/libungif-4.1.1/Makefile b/deps/libungif-4.1.1/Makefile index 07fadca3ef..947ee2772f 100644 --- a/deps/libungif-4.1.1/Makefile +++ b/deps/libungif-4.1.1/Makefile @@ -112,6 +112,6 @@ wipeclean: distclean: $(_MAKE) -f $(_CF_DIR)Cleanfile distclean distclean_all_subdirs -Makefile: ; -$(_CF_DIR)crossplatform.mk: ; -$(_CF_DIR)default.cf: ; +$(MAKEFILE_LIST): ; +$(SOURCES): ; +$(RESOURCES): ; diff --git a/deps/zlib-1.2.8/Makefile b/deps/zlib-1.2.8/Makefile index c76f32a938..37d39aa8b8 100644 --- a/deps/zlib-1.2.8/Makefile +++ b/deps/zlib-1.2.8/Makefile @@ -203,6 +203,6 @@ wipeclean: distclean: $(_MAKE) -f $(_CF_DIR)Cleanfile distclean distclean_all_subdirs -Makefile: ; -$(_CF_DIR)crossplatform.mk: ; -$(_CF_DIR)default.cf: ; +$(MAKEFILE_LIST): ; +$(SOURCES): ; +$(RESOURCES): ; diff --git a/documentor/Makefile b/documentor/Makefile index 26b596db25..e82b374d13 100644 --- a/documentor/Makefile +++ b/documentor/Makefile @@ -264,6 +264,6 @@ wipeclean: distclean: $(_MAKE) -f $(_CF_DIR)Cleanfile distclean distclean_all_subdirs -Makefile: ; -$(_CF_DIR)crossplatform.mk: ; -$(_CF_DIR)default.cf: ; +$(MAKEFILE_LIST): ; +$(SOURCES): ; +$(RESOURCES): ; diff --git a/ear/Makefile b/ear/Makefile index 20861c5ead..06948182c0 100644 --- a/ear/Makefile +++ b/ear/Makefile @@ -38,6 +38,6 @@ wipeclean: distclean: $(_MAKE) -f $(_CF_DIR)Cleanfile distclean distclean_all_subdirs -Makefile: ; -$(_CF_DIR)crossplatform.mk: ; -$(_CF_DIR)default.cf: ; +$(MAKEFILE_LIST): ; +$(SOURCES): ; +$(RESOURCES): ; diff --git a/ear/cmd/Makefile b/ear/cmd/Makefile index 9f4b597f58..2cff39d7df 100644 --- a/ear/cmd/Makefile +++ b/ear/cmd/Makefile @@ -181,6 +181,6 @@ wipeclean: distclean: $(_MAKE) -f $(_CF_DIR)Cleanfile distclean distclean_all_subdirs -Makefile: ; -$(_CF_DIR)crossplatform.mk: ; -$(_CF_DIR)default.cf: ; +$(MAKEFILE_LIST): ; +$(SOURCES): ; +$(RESOURCES): ; diff --git a/ear/extract/Makefile b/ear/extract/Makefile index 97ae43afac..8589f6d5b6 100644 --- a/ear/extract/Makefile +++ b/ear/extract/Makefile @@ -281,6 +281,6 @@ realclean: cleantarget distclean: $(_MAKE) -f $(_CF_DIR)Cleanfile distclean distclean_all_subdirs -Makefile: ; -$(_CF_DIR)crossplatform.mk: ; -$(_CF_DIR)default.cf: ; +$(MAKEFILE_LIST): ; +$(SOURCES): ; +$(RESOURCES): ; diff --git a/ecere/Makefile b/ecere/Makefile index 5fc048ac29..063742bdfd 100644 --- a/ecere/Makefile +++ b/ecere/Makefile @@ -2208,9 +2208,9 @@ wipeclean: distclean: $(_MAKE) -f $(_CF_DIR)Cleanfile distclean distclean_all_subdirs -Makefile: ; -$(_CF_DIR)crossplatform.mk: ; -$(_CF_DIR)default.cf: ; +$(MAKEFILE_LIST): ; +$(SOURCES): ; +$(RESOURCES): ; #troubleshoot: # @$(call echo,OBJECTS = $(OBJECTS)) diff --git a/ecere/Makefile.bootstrap b/ecere/Makefile.bootstrap index cc65052c4c..0ad1689ed5 100644 --- a/ecere/Makefile.bootstrap +++ b/ecere/Makefile.bootstrap @@ -293,6 +293,6 @@ wipeclean: distclean: $(_MAKE) -f $(_CF_DIR)Cleanfile distclean distclean_all_subdirs -Makefile.bootstrap: ; -$(_CF_DIR)crossplatform.mk: ; -$(_CF_DIR)$(TARGET_PLATFORM)-$(COMPILER).cf: ; +$(MAKEFILE_LIST): ; +$(SOURCES): ; +$(RESOURCES): ; diff --git a/ecere/Makefile.ecereCOM b/ecere/Makefile.ecereCOM index fc0e2b2d3e..b4d6fd98ea 100644 --- a/ecere/Makefile.ecereCOM +++ b/ecere/Makefile.ecereCOM @@ -381,6 +381,6 @@ wipeclean: distclean: $(_MAKE) -f $(_CF_DIR)Cleanfile distclean distclean_all_subdirs -Makefile.ecereCOM: ; -$(_CF_DIR)crossplatform.mk: ; -$(_CF_DIR)default.cf: ; +$(MAKEFILE_LIST): ; +$(SOURCES): ; +$(RESOURCES): ; diff --git a/ecere/Makefile.vanilla b/ecere/Makefile.vanilla index 30f8434cf6..ce01fd0740 100644 --- a/ecere/Makefile.vanilla +++ b/ecere/Makefile.vanilla @@ -1485,6 +1485,6 @@ wipeclean: distclean: $(_MAKE) -f $(_CF_DIR)Cleanfile distclean distclean_all_subdirs -Makefile.vanilla: ; -$(_CF_DIR)crossplatform.mk: ; -$(_CF_DIR)default.cf: ; +$(MAKEFILE_LIST): ; +$(SOURCES): ; +$(RESOURCES): ; diff --git a/eda/Makefile b/eda/Makefile index 72071ba32f..5a75ba647e 100644 --- a/eda/Makefile +++ b/eda/Makefile @@ -78,6 +78,6 @@ wipeclean: distclean: $(_MAKE) -f $(_CF_DIR)Cleanfile distclean distclean_all_subdirs -Makefile: ; -$(_CF_DIR)crossplatform.mk: ; -$(_CF_DIR)default.cf: ; +$(MAKEFILE_LIST): ; +$(SOURCES): ; +$(RESOURCES): ; diff --git a/eda/drivers/sqlite/Makefile b/eda/drivers/sqlite/Makefile index f83a2de8b7..ec574b4360 100644 --- a/eda/drivers/sqlite/Makefile +++ b/eda/drivers/sqlite/Makefile @@ -253,6 +253,6 @@ wipeclean: distclean: $(_MAKE) -f $(_CF_DIR)Cleanfile distclean distclean_all_subdirs -Makefile: ; -$(_CF_DIR)crossplatform.mk: ; -$(_CF_DIR)default.cf: ; +$(MAKEFILE_LIST): ; +$(SOURCES): ; +$(RESOURCES): ; diff --git a/eda/drivers/sqliteCipher/Makefile b/eda/drivers/sqliteCipher/Makefile index a0a155d10b..88f381df4c 100644 --- a/eda/drivers/sqliteCipher/Makefile +++ b/eda/drivers/sqliteCipher/Makefile @@ -260,6 +260,7 @@ wipeclean: distclean: $(_MAKE) -f $(_CF_DIR)Cleanfile distclean distclean_all_subdirs -Makefile: ; -$(_CF_DIR)crossplatform.mk: ; -$(_CF_DIR)default.cf: ; +$(MAKEFILE_LIST): ; +$(SOURCES): ; +$(RESOURCES): ; + diff --git a/eda/libeda/Makefile b/eda/libeda/Makefile index bd114a4e03..d251319b94 100644 --- a/eda/libeda/Makefile +++ b/eda/libeda/Makefile @@ -288,6 +288,6 @@ wipeclean: distclean: $(_MAKE) -f $(_CF_DIR)Cleanfile distclean distclean_all_subdirs -Makefile: ; -$(_CF_DIR)crossplatform.mk: ; -$(_CF_DIR)default.cf: ; +$(MAKEFILE_LIST): ; +$(SOURCES): ; +$(RESOURCES): ; diff --git a/epj2make/Makefile b/epj2make/Makefile index fb10031b30..b965e500c6 100644 --- a/epj2make/Makefile +++ b/epj2make/Makefile @@ -250,6 +250,7 @@ wipeclean: distclean: $(_MAKE) -f $(_CF_DIR)Cleanfile distclean distclean_all_subdirs -Makefile: ; -$(_CF_DIR)crossplatform.mk: ; -$(_CF_DIR)default.cf: ; +$(MAKEFILE_LIST): ; +$(SOURCES): ; +# filtering out crossplatform.mk which already has an empty recipe via $(MAKEFILE_LIST) +$(filter-out $(_CF_DIR)crossplatform.mk,$(RESOURCES)): ; diff --git a/ide/Makefile b/ide/Makefile index 41a3f6ee0c..f35ea34e8b 100644 --- a/ide/Makefile +++ b/ide/Makefile @@ -769,6 +769,7 @@ wipeclean: distclean: $(_MAKE) -f $(_CF_DIR)Cleanfile distclean distclean_all_subdirs -Makefile: ; -$(_CF_DIR)crossplatform.mk: ; -$(_CF_DIR)default.cf: ; +$(MAKEFILE_LIST): ; +$(SOURCES): ; +# filtering out crossplatform.mk which already has an empty recipe via $(MAKEFILE_LIST) +$(filter-out $(_CF_DIR)crossplatform.mk,$(RESOURCES)): ; diff --git a/installer/Makefile b/installer/Makefile index 575e91260e..2abe55233f 100644 --- a/installer/Makefile +++ b/installer/Makefile @@ -6680,6 +6680,6 @@ wipeclean: distclean: $(_MAKE) -f $(_CF_DIR)Cleanfile distclean distclean_all_subdirs -Makefile: ; -$(_CF_DIR)crossplatform.mk: ; -$(_CF_DIR)default.cf: ; +$(MAKEFILE_LIST): ; +$(SOURCES): ; +$(RESOURCES): ;