]> git.donarmstrong.com Git - lilypond.git/blob - stepmake/make/stepmake.make
9b114e1b20b2388cc3bdf0621926d539109c0055
[lilypond.git] / stepmake / make / stepmake.make
1 # make/Stepmake.make
2
3 include $(depth)/make/toplevel-version.make
4
5 # Don't try to outsmart us, you puny computer!
6 ifeq (0,${MAKELEVEL})
7   MAKE:=$(MAKE) --no-builtin-rules
8 endif
9
10 ifndef config
11   configuration=config
12 else
13   configuration=config-$(config)
14 endif
15
16 include $(depth)/$(configuration).make
17
18 ifdef CONFIGSUFFIX
19 outdir=out-$(CONFIGSUFFIX)
20 else
21 outdir=out
22 endif
23
24 stepdir = $(depth)/stepmake
25
26 LOCALSTEPMAKE_TEMPLATES:=generic $(LOCALSTEPMAKE_TEMPLATES)
27 STEPMAKE_TEMPLATES := generic $(STEPMAKE_TEMPLATES) 
28
29 default:
30
31 include $(addprefix $(depth)/make/,$(addsuffix -vars.make, $(LOCALSTEPMAKE_TEMPLATES))) 
32 include $(addprefix $(stepdir)/,$(addsuffix -vars.make, $(STEPMAKE_TEMPLATES))) 
33 include $(addprefix $(depth)/make/,$(addsuffix -rules.make, $(LOCALSTEPMAKE_TEMPLATES))) 
34 include $(addprefix $(stepdir)/,$(addsuffix -rules.make, $(STEPMAKE_TEMPLATES))) 
35 include $(addprefix $(depth)/make/,$(addsuffix -targets.make, $(LOCALSTEPMAKE_TEMPLATES))) 
36 include $(addprefix $(stepdir)/,$(addsuffix -targets.make, $(STEPMAKE_TEMPLATES))) 
37
38
39