# -*-makefile-*- # # Copyright (C) 2002-2009 by The PTXdist Team # ifneq ($(findstring n,$(filter-out --%,$(MAKEFLAGS))),) # make sure recursive calls do nothing for --dry-run MAKE=true SHELL=true define ptx/force-shell $(eval SHELL=$(realpath $(PTXDIST_TOPDIR)/bin/bash))$(shell $(1))$(eval SHELL=true) endef define ptx/force-sh $(eval SHELL=/bin/sh)$(shell $(1))$(eval SHELL=true) endef define ptx/sh endef else # make sure bash is used to execute commands from makefiles SHELL=$(realpath $(PTXDIST_TOPDIR)/bin/bash) define ptx/force-shell $(shell $(1)) endef define ptx/force-sh $(eval SHELL=/bin/sh)$(shell $(1))$(eval SHELL=$(realpath $(PTXDIST_TOPDIR)/bin/bash)) endef define ptx/sh $(call ptx/force-sh,$(1)) endef endif export SHELL unexport MAKEFLAGS PHONY := all FORCE all: @echo "ptxdist: error: please use 'ptxdist' instead of calling make directly." @exit 1 # ---------------------------------------------------------------------------- # Some directory locations # ---------------------------------------------------------------------------- include $(PTXDIST_TOPDIR)/scripts/ptxdist_vars.sh include $(RULESDIR)/other/Definitions.make include $(PTXDIST_PTXCONFIG) # might be non existent -include $(PTXDIST_PLATFORMCONFIG) # might be non existent ifneq ($(wildcard $(PTXDIST_COLLECTIONCONFIG)),) include $(PTXDIST_COLLECTIONCONFIG) PTX_COLLECTION := y endif # ---------------------------------------------------------------------------- # Include all rule files # ---------------------------------------------------------------------------- include $(PTX_MAP_ALL_MAKE) include $(RULESDIR)/other/Namespace.make # might be non existent include $(foreach dir, $(call reverse,$(subst :,$(space),$(PTXDIST_PATH_PRERULES))), $(sort $(wildcard $(dir)/*.make))) include $(PTX_DGEN_DEPS_PRE) include $(PTX_DGEN_RULESFILES_MAKE) # # the extended format is: # PACKAGES--