]> git.donarmstrong.com Git - lilypond.git/blob - make/stepmake.make
release: 1.1.43
[lilypond.git] / 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 .SUFFIXES:
10
11
12 ifndef config
13   configuration=config
14 else
15   configuration=config-$(config)
16 endif
17
18 include $(depth)/$(configuration).make
19
20 ifdef CONFIGSUFFIX
21 outdir=out-$(CONFIGSUFFIX)
22 else
23 outdir=out
24 endif
25
26 # user package
27 stepdir = $(stepmake)/stepmake
28 # for stepmake packageg
29 # stepdir = $(depth)/stepmake
30
31 STEPMAKE_TEMPLATES := generic $(STEPMAKE_TEMPLATES) 
32 LOCALSTEPMAKE_TEMPLATES:= generic $(LOCALSTEPMAKE_TEMPLATES)
33
34
35 all:
36
37 -include $(addprefix $(depth)/make/,$(addsuffix -inclusions.make, $(LOCALSTEPMAKE_TEMPLATES)))
38
39 -include $(addprefix $(stepdir)/,$(addsuffix -inclusions.make, $(STEPMAKE_TEMPLATES)))
40
41
42 include $(addprefix $(stepdir)/,$(addsuffix -vars.make, $(STEPMAKE_TEMPLATES)))
43
44 # ugh. need to do this because of PATH :=$(topdir)/..:$(PATH) 
45 include $(addprefix $(depth)/make/,$(addsuffix -vars.make, $(LOCALSTEPMAKE_TEMPLATES))) 
46
47
48 include $(addprefix $(depth)/make/,$(addsuffix -rules.make, $(LOCALSTEPMAKE_TEMPLATES))) 
49 include $(addprefix $(stepdir)/,$(addsuffix -rules.make, $(STEPMAKE_TEMPLATES))) 
50 include $(addprefix $(depth)/make/,$(addsuffix -targets.make, $(LOCALSTEPMAKE_TEMPLATES))) 
51 include $(addprefix $(stepdir)/,$(addsuffix -targets.make, $(STEPMAKE_TEMPLATES))) 
52
53