lilypond-1.0.19
[lilypond.git] / make / Stepmake.make
blobc8c827e18abda2bb320c8bdf6b4cdb1564304e60
1 # make/Stepmake.make
3 include $(depth)/make/Toplevel_version.make
5 # Don't try to outsmart us, you puny computer!
6 ifeq (0,${MAKELEVEL})
7 MAKE:=$(MAKE) --no-builtin-rules
8 endif
10 ifndef config
11 configuration=config
12 else
13 configuration=config-$(config)
14 endif
16 include $(depth)/$(configuration).make
18 ifdef CONFIGSUFFIX
19 outdir=out-$(CONFIGSUFFIX)
20 else
21 outdir=out
22 endif
26 stepdir = $(depth)/$(stepmake)/stepmake
27 include $(stepdir)/Include.make
29 MAKEFILES := Generic $(MAKEFILES)
31 include $(addprefix $(stepdir)/,$(addsuffix _vars.make, $(MAKEFILES)))
32 include $(addprefix $(depth)/make/,$(addsuffix _vars.make, $(LOCALMAKEFILES)))
33 include $(addprefix $(stepdir)/,$(addsuffix _rules.make, $(MAKEFILES)))
34 include $(addprefix $(depth)/make/,$(addsuffix _rules.make, $(LOCALMAKEFILES)))
35 include $(addprefix $(stepdir)/,$(addsuffix _targets.make, $(MAKEFILES)))
36 include $(addprefix $(depth)/make/,$(addsuffix _targets.make, $(LOCALMAKEFILES)))
38 # ugh. ugh ugh ugh
39 $(depth)/$(configuration).make: $(depth)/configure
40 @echo "**************************************"
41 @echo "configure changed! You should probably reconfigure manually."
42 @echo "**************************************"
43 (cd $(depth); ./config.status)