Remove octave check warnings.
[lilypond.git] / make / stepmake.make
blob604341be638c6b0d0ec55ed27a599ae38e6b26c8
1 # make/Stepmake.make
3 # If usescons=something then reroute to scons if user is using that.
4 ifdef usescons
6 SCONS_USER = $(wildcard $(depth)/.sconsign)
7 ifeq ($(SCONS_USER),)
8 SCONS_USER = $(wildcard $(depth)/.sconf_temp)
9 endif
10 ifneq ($(SCONS_USER),)
12 ifeq ($(strip $(depth)),..)
13 here = $(notdir $(CURDIR))
14 else
15 ifeq ($(strip $(depth)),../..)
16 # ZUCHT?
17 # here = $(notdir $(dir $(CURDIR)))/$(notdir $(CURDIR))
18 here = $(shell basename $$(dirname $(CURDIR)))/$(notdir $(CURDIR))
19 endif
20 endif
22 MAKE_TARGETS = config deb diff dist distclean doc release po \
23 po-replace po-update all clean check default exe help install lib web \
24 web-install web-clean TAGS
26 $(MAKE_TARGETS): scons
28 # To make this trickery complete, we could have ./configure remove
29 # traces of scons configuration.
30 scons:
31 @echo "warning: $(SCONS_USER) detected, rerouting to scons"
32 cd $(depth) && scons $(here) $(MAKECMDGOALS)
33 false
34 endif
35 endif
38 # Use alternate configurations alongside eachother:
40 # ./configure --enable-config=debug
41 # make conf=debug
43 # uses config-debug.make and config-debug.h; output goes to out-debug.
45 ifdef conf
46 CONFIGSUFFIX=-$(conf)
47 endif
49 # Use same configuration, but different output directory:
51 # make out=www
53 # uses config.make and config.h; output goes to out-www.
55 ifdef out
56 outbase=out-$(out)
57 else
58 outbase=out$(CONFIGSUFFIX)
59 endif
61 ifdef config
62 config_make=$(config)
63 else
64 config_make=$(depth)/config$(CONFIGSUFFIX).make
65 endif
67 outroot=.
69 include $(config_make)
71 include $(depth)/make/toplevel-version.make
74 # suggested settings
76 # CPU_COUNT=2 ## for SMP/Multicore machine
78 -include $(depth)/local.make
80 MICRO_VERSION=$(PATCH_LEVEL)
81 BUILD_VERSION=1
84 outdir=$(outroot)/$(outbase)
86 # why not generic ??
87 config_h=$(top-build-dir)/config$(CONFIGSUFFIX).hh
89 # The outdir that was configured for: best guess to find binaries
90 outconfbase=out$(CONFIGSUFFIX)
91 outconfdir=$(outroot)/$(outconfbase)
93 # user package
94 stepdir = $(stepmake)/stepmake
95 # for stepmake package
96 # stepdir = $(depth)/stepmake
98 STEPMAKE_TEMPLATES := generic $(STEPMAKE_TEMPLATES)
99 LOCALSTEPMAKE_TEMPLATES:= generic $(LOCALSTEPMAKE_TEMPLATES)
101 # Don't try to outsmart us, you puny computer!
102 # Well, UGH. This only removes builtin rules from
103 # subsequent $(MAKE)s, *not* from the current run!
104 ifeq ($(BUILTINS_REMOVED),)
105 export BUILTINS_REMOVED = yes
106 MAKE:=$(MAKE) --no-builtin-rules
107 include $(stepdir)/no-builtin-rules.make
108 endif
109 .SUFFIXES:
111 all:
113 -include $(addprefix $(depth)/make/,$(addsuffix -inclusions.make, $(LOCALSTEPMAKE_TEMPLATES)))
115 -include $(addprefix $(stepdir)/,$(addsuffix -inclusions.make, $(STEPMAKE_TEMPLATES)))
118 include $(addprefix $(stepdir)/,$(addsuffix -vars.make, $(STEPMAKE_TEMPLATES)))
120 # ugh. need to do this because of PATH :=$(top-src-dir)/..:$(PATH)
121 include $(addprefix $(depth)/make/,$(addsuffix -vars.make, $(LOCALSTEPMAKE_TEMPLATES)))
124 include $(addprefix $(depth)/make/,$(addsuffix -rules.make, $(LOCALSTEPMAKE_TEMPLATES)))
125 include $(addprefix $(stepdir)/,$(addsuffix -rules.make, $(STEPMAKE_TEMPLATES)))
126 include $(addprefix $(depth)/make/,$(addsuffix -targets.make, $(LOCALSTEPMAKE_TEMPLATES)))
127 include $(addprefix $(stepdir)/,$(addsuffix -targets.make, $(STEPMAKE_TEMPLATES)))