]> git.donarmstrong.com Git - lilypond.git/blob - stepmake/make/srcdir.make.in
patch::: 1.3.37.jcn2
[lilypond.git] / stepmake / make / srcdir.make.in
1 # -*-Makefile-*-
2 # specific srcdir makefile for StepMake
3
4 depth=..
5
6 # Don't try to outsmart us, you puny computer!
7 ifeq (0,${MAKELEVEL})
8   MAKE:=$(MAKE) --no-builtin-rules
9 endif
10
11 # Use alternate configurations alongside eachother:
12 #
13 #     ./configure --enable-configsuffix=debug
14 #     make conf=debug
15 #
16 # uses config-debug.make and config-debug.h; output goes to out-debug.
17 #
18 ifdef conf
19   CONFIGSUFFIX=-$(conf)
20 endif
21
22 # Use same configuration, but different output directory:
23 #
24 #     make out=WWW
25 #
26 # uses config.make and config.h; output goes to out-WWW.
27 #
28 ifdef out
29   outbase=out-$(out)
30 else
31   outbase=out$(CONFIGSUFFIX)
32 endif
33
34 config = config$(CONFIGSUFFIX).make
35
36 include $(config)
37
38 SRCDIR=$(MAKE) -C $(srcdir) builddir=$(builddir) $@
39
40 default: all
41
42 %:
43         $(SRCDIR)