7 @echo one=.$(shell cd $(builddir); pwd).
8 @echo two=.$(shell cd $(depth); pwd).
10 include $(depth)/make/toplevel-version.make
13 # Use alternate configurations alongside eachother:
15 # ./configure --enable-config=debug
18 # uses config-debug.make and config-debug.h; output goes to out-debug.
24 # Use same configuration, but different output directory:
28 # uses config.make and config.h; output goes to out-www.
33 outbase=out$(CONFIGSUFFIX)
37 configuration=$(config)
40 configuration=$(depth)/config$(CONFIGSUFFIX).make
42 configuration=$(builddir)/config$(CONFIGSUFFIX).make
49 outroot=$(builddir)/$(patsubst $(shell cd $(depth); pwd)%,%,$(pwd))
52 include $(configuration)
54 outdir=$(outroot)/$(outbase)
55 config_h=$(builddir)/config$(CONFIGSUFFIX).h
57 # The outdir that was configured for: best guess to find binaries
58 outconfbase=out$(CONFIGSUFFIX)
59 outconfdir=$(outroot)/$(outconfbase)
62 stepdir = $(stepmake)/stepmake
63 # for stepmake package
64 # stepdir = $(depth)/stepmake
66 STEPMAKE_TEMPLATES := generic $(STEPMAKE_TEMPLATES)
67 LOCALSTEPMAKE_TEMPLATES:= generic $(LOCALSTEPMAKE_TEMPLATES)
69 # Don't try to outsmart us, you puny computer!
70 # Well, UGH. This only removes builtin rules from
71 # subsequent $(MAKE)s, *not* from the current run!
72 ifeq ($(BUILTINS_REMOVED),)
73 export BUILTINS_REMOVED = yes
74 MAKE:=$(MAKE) --no-builtin-rules
75 include $(stepdir)/no-builtin-rules.make
81 -include $(addprefix $(depth)/make/,$(addsuffix -inclusions.make, $(LOCALSTEPMAKE_TEMPLATES)))
83 -include $(addprefix $(stepdir)/,$(addsuffix -inclusions.make, $(STEPMAKE_TEMPLATES)))
86 include $(addprefix $(stepdir)/,$(addsuffix -vars.make, $(STEPMAKE_TEMPLATES)))
88 # ugh. need to do this because of PATH :=$(topdir)/..:$(PATH)
89 include $(addprefix $(depth)/make/,$(addsuffix -vars.make, $(LOCALSTEPMAKE_TEMPLATES)))
92 include $(addprefix $(depth)/make/,$(addsuffix -rules.make, $(LOCALSTEPMAKE_TEMPLATES)))
93 include $(addprefix $(stepdir)/,$(addsuffix -rules.make, $(STEPMAKE_TEMPLATES)))
94 include $(addprefix $(depth)/make/,$(addsuffix -targets.make, $(LOCALSTEPMAKE_TEMPLATES)))
95 include $(addprefix $(stepdir)/,$(addsuffix -targets.make, $(STEPMAKE_TEMPLATES)))