diff options
Diffstat (limited to 'rules/other')
-rw-r--r-- | rules/other/Definitions.make | 4 | ||||
-rw-r--r-- | rules/other/Toplevel.make | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/rules/other/Definitions.make b/rules/other/Definitions.make index a76956dae..da6132288 100644 --- a/rules/other/Definitions.make +++ b/rules/other/Definitions.make @@ -56,5 +56,9 @@ define tr_sh $(strip $(shell echo $(1) | sed 'y%*+%pp%;s%[^_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]%_%g')) endef +define reverse +$(if $(1),$(call reverse,$(wordlist 2,$(words $(1)),$(1)))) $(firstword $(1)) +endef + # vim600:set foldmethod=marker: # vim600:set syntax=make: diff --git a/rules/other/Toplevel.make b/rules/other/Toplevel.make index 6f1616bac..35c2c272d 100644 --- a/rules/other/Toplevel.make +++ b/rules/other/Toplevel.make @@ -39,7 +39,7 @@ include $(PTX_MAP_ALL_MAKE) include $(RULESDIR)/other/Namespace.make # might be non existent -include $(wildcard $(addsuffix /*.make,$(subst :,$(space),$(PTXDIST_PATH_PRERULES)))) +include $(wildcard $(addsuffix /*.make,$(call reverse,$(subst :,$(space),$(PTXDIST_PATH_PRERULES))))) include $(PTX_DGEN_DEPS_PRE) include $(PTX_DGEN_RULESFILES_MAKE) @@ -95,7 +95,7 @@ PTX_PACKAGES_INSTALL := \ $(PACKAGES-b) # might be non existent -include $(wildcard $(addsuffix /*.make,$(subst :,$(space),$(PTXDIST_PATH_POSTRULES)))) +include $(wildcard $(addsuffix /*.make,$(call reverse,$(subst :,$(space),$(PTXDIST_PATH_POSTRULES))))) # install_alternative and install_copy has some configuration defined # dependencies. include the files specifying these dependencies. include $(wildcard $(STATEDIR)/*.deps) |