Skip to content

Commit

Permalink
tarball: improve empty recipies by using MAKEFILE_LIST, SOURCES and R…
Browse files Browse the repository at this point in the history
…ESOURCES variables. this works no matter the path used to call make or to include the libraries and compiler configurations.
  • Loading branch information
redj committed Aug 15, 2019
1 parent 34e47b1 commit d3ded8f
Show file tree
Hide file tree
Showing 40 changed files with 124 additions and 117 deletions.
4 changes: 4 additions & 0 deletions Cleanfile
Original file line number Diff line number Diff line change
Expand Up @@ -62,3 +62,7 @@ ifdef _SDK_SRC_ROOT
$(call rm,*.ews)
endif
endif

$(MAKEFILE_LIST): ;
$(SOURCES): ;
$(RESOURCES): ;
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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) \
Expand Down
6 changes: 3 additions & 3 deletions audio/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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): ;
6 changes: 3 additions & 3 deletions compiler/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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): ;
6 changes: 3 additions & 3 deletions compiler/bootstrap/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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): ;
6 changes: 3 additions & 3 deletions compiler/bootstrap/ecc/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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): ;
6 changes: 3 additions & 3 deletions compiler/bootstrap/ecere/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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): ;
6 changes: 3 additions & 3 deletions compiler/bootstrap/ecp/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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): ;
6 changes: 3 additions & 3 deletions compiler/bootstrap/ecs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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): ;
6 changes: 3 additions & 3 deletions compiler/bootstrap/libec/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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): ;
6 changes: 3 additions & 3 deletions compiler/ecc/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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): ;
6 changes: 3 additions & 3 deletions compiler/ecc/Makefile.bootstrap
Original file line number Diff line number Diff line change
Expand Up @@ -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): ;
6 changes: 3 additions & 3 deletions compiler/ecp/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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): ;
6 changes: 3 additions & 3 deletions compiler/ecp/Makefile.bootstrap
Original file line number Diff line number Diff line change
Expand Up @@ -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): ;
6 changes: 3 additions & 3 deletions compiler/ecs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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): ;
6 changes: 3 additions & 3 deletions compiler/ecs/Makefile.bootstrap
Original file line number Diff line number Diff line change
Expand Up @@ -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): ;
6 changes: 3 additions & 3 deletions compiler/libec/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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): ;
6 changes: 3 additions & 3 deletions compiler/libec/Makefile.bootstrap
Original file line number Diff line number Diff line change
Expand Up @@ -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): ;
6 changes: 3 additions & 3 deletions deps/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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): ;
6 changes: 3 additions & 3 deletions deps/freetype-2.3.12/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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): ;
6 changes: 3 additions & 3 deletions deps/jpeg-9a/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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): ;
6 changes: 3 additions & 3 deletions deps/libffi-3.0.11/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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): ;
6 changes: 3 additions & 3 deletions deps/libpng-1.6.12/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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): ;
6 changes: 3 additions & 3 deletions deps/libungif-4.1.1/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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): ;
6 changes: 3 additions & 3 deletions deps/zlib-1.2.8/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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): ;
6 changes: 3 additions & 3 deletions documentor/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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): ;
6 changes: 3 additions & 3 deletions ear/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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): ;
6 changes: 3 additions & 3 deletions ear/cmd/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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): ;
6 changes: 3 additions & 3 deletions ear/extract/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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): ;
6 changes: 3 additions & 3 deletions ecere/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down
6 changes: 3 additions & 3 deletions ecere/Makefile.bootstrap
Original file line number Diff line number Diff line change
Expand Up @@ -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): ;
6 changes: 3 additions & 3 deletions ecere/Makefile.ecereCOM
Original file line number Diff line number Diff line change
Expand Up @@ -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): ;
6 changes: 3 additions & 3 deletions ecere/Makefile.vanilla
Original file line number Diff line number Diff line change
Expand Up @@ -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): ;
6 changes: 3 additions & 3 deletions eda/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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): ;
6 changes: 3 additions & 3 deletions eda/drivers/sqlite/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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): ;
7 changes: 4 additions & 3 deletions eda/drivers/sqliteCipher/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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): ;

6 changes: 3 additions & 3 deletions eda/libeda/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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): ;
7 changes: 4 additions & 3 deletions epj2make/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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)): ;
7 changes: 4 additions & 3 deletions ide/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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)): ;

0 comments on commit d3ded8f

Please sign in to comment.