]> git.donarmstrong.com Git - lilypond.git/blob - make/srcdir.make.in
734ce42bd4140678f0e69473be61e073e27a231e
[lilypond.git] / make / srcdir.make.in
1 # -*-Makefile-*-
2 # specific srcdir makefile for LilyPond  
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 configurations, 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 export SRCMAKE=$(MAKE) -C $(srcdir) -f GNUmakefile.in builddir=$(builddir)
39
40 default: all
41
42 %:
43         $(SRCMAKE) $@
44
45 web: 
46         $(SRCMAKE) out=www WWW
47         $(SRCMAKE) out=www WWW-post
48
49 web-install:
50         $(SRCMAKE) out=www install-WWW
51
52 install:
53         $(SRCMAKE) install
54         $(SRCMAKE) final-install