]> git.donarmstrong.com Git - lilypond.git/blob - lib/Makefile
83dfc51d4fb7d0d12833aeeacf3c8847759eadc4
[lilypond.git] / lib / Makefile
1 #
2 # project  LilyPond -- the musical typesetter
3 # title    makefile for micro-lily-lib
4 # file     lib/Makefile 
5 #
6 # Copyright (c) 1997 by
7 #       Jan Nieuwenhuizen <jan@digicash.com>
8 #       Han-Wen Nienhuys <hanwen@stack.nl>
9 #
10
11 # subdir level:
12 #
13 depth = ..
14 #
15
16 # generic variables:
17 #
18 include ./$(depth)/make/Variables.make 
19 include ./$(depth)/make/Files.make
20 include ./$(depth)/make/Version.make 
21 #
22
23 # identify module:
24 #
25 NAME = lily
26 #
27
28 # descent order into subdirectories:
29 #
30 SUBDIRS = include
31 #
32
33 # to be remade each build:
34 #
35 VERSION_DEPENDENCY =#
36 #
37
38 # list of distribution files:
39 #
40 EXTRA_DISTFILES = config.hh.in
41 #
42
43 MODULE_CXXFLAGS += -D_REENTRANT
44
45 # list of custom libraries:
46
47 LOADLIBES +=
48 #
49
50 # main target of this module:
51
52 # MAINTARGET = $(EXECUTABLE)
53 # MAINTARGET = $(LIBRARY)
54 # MAINTARGET = $(bindir)/$(EXECUTABLE)# huh?
55 MAINTARGET = $(outdir)/$(LIBRARY)# huh?
56
57 default: configheader $(MAINTARGET)
58 #
59
60 localclean:
61         rm -f $(MAINTARGET)
62
63 # generic targets and rules:
64 #
65 include ./$(depth)/make/Targets.make
66 include ./$(depth)/make/Rules.make
67
68 # auto dependencies:
69 #
70 -include $(DEPFILES)
71 #
72
73 .PHONY: configheader
74
75 configheader: $(outdir)/config.hh
76
77 # Ugh ugh
78 $(outdir)/config.hh: config.hh.in
79         sed 's!@datadir@!$(datadir)!'<  $< > $@