File: srcdir.make.in

package info (click to toggle)
lilypond 2.2.6-3
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 11,260 kB
  • ctags: 7,622
  • sloc: cpp: 47,787; lisp: 11,217; python: 11,203; sh: 3,290; yacc: 2,011; lex: 831; perl: 373; ansic: 309; makefile: 132; csh: 8
file content (54 lines) | stat: -rw-r--r-- 958 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# -*-Makefile-*-
# specific srcdir makefile for LilyPond  

depth=.

# Don't try to outsmart us, you puny computer!
ifeq (0,${MAKELEVEL})
  MAKE:=$(MAKE) --no-builtin-rules
endif

# Use alternate configurations alongside eachother:
#
#     ./configure --enable-configsuffix=debug
#     make conf=debug
#
# uses config-debug.make and config-debug.h; output goes to out-debug.
#
ifdef conf
  CONFIGSUFFIX=-$(conf)
endif

# Use same configurations, but different output directory:
#
#     make out=WWW
#
# uses config.make and config.h; output goes to out-WWW.
#
ifdef out
  outbase=out-$(out)
else
  outbase=out$(CONFIGSUFFIX)
endif

config = config$(CONFIGSUFFIX).make

include $(config)

export SRCMAKE=$(MAKE) -C $(srcdir) -f GNUmakefile.in builddir=$(builddir)

default: all

%:
	$(SRCMAKE) $@

web: 
	$(SRCMAKE) out=www WWW
	$(SRCMAKE) out=www WWW-post

web-install:
	$(SRCMAKE) out=www install-WWW

install:
	$(SRCMAKE) install
	$(SRCMAKE) final-install