]> git.donarmstrong.com Git - lilypond.git/blob - make/Rules.make
release: 0.0.39-1
[lilypond.git] / make / Rules.make
1 #
2 # project  LilyPond -- the musical typesetter
3 # title    generic make rules
4 # file     make/Rules.make
5 #
6 # Copyright (c) 1997 by    
7 #       Jan Nieuwenhuizen <jan@digicash.com>
8 #       Han-Wen Nienhuys <hanwen@stack.nl>
9
10 .SUFFIXES:
11 .SUFFIXES: .cc .o .hh .y .l .pod .txt .1 .dep
12
13 # compile rules:
14 #
15 $(outdir)/%.o: %.cc
16         $(DODEP)\
17         $(CXX) -c $(CXXFLAGS) $(CXX_OUTPUT_OPTION) 
18
19 $(outdir)/%.cc: %.y
20 #       $(BISON) -d $<
21         $(BISON) $<
22 #       mv $(shell basename $@ .cc ).tab.h $(include-lib)/$(shell basename $@ .cc).hh
23 #       mv $(shell basename $@ .cc ).tab.h $(outdir)/$(shell basename $@ .cc).hh
24         mv $(shell basename $@ .cc ).tab.c $@
25
26 $(outdir)/%.hh: %.y
27         $(BISON) -d $<
28         mv $(shell basename $@ .hh ).tab.h $@
29         mv $(shell basename $@ .hh ).tab.c $(outdir)/$(shell basename $@ .hh).cc
30
31 $(outdir)/%.cc: %.l
32         $(FLEX)  -t $< > $@
33
34 $(outdir)/%.text: $(outdir)/%.1
35         groff -man -Tascii $< > $@
36
37 $(outdir)/%.1: %.pod
38         pod2man --center="LilyPond documentation" --section="0"\
39                 --release="LilyPond $(MAJVER).$(MINVER).$(PATCHLEVEL)" $< > $@
40 #
41
42 # specific stuff:
43 #
44 $(LIBFLOWER): check-flower-version
45 #       $(MAKE) -C ./$(depth)/flower/lib
46         $(MAKE) ./$(outdir)/$(@F) -C $(depth)/flower/lib
47 #
48 $(LIBLILY): check-flower-version $(lily-version)
49 #       $(MAKE) -C ./$(depth)/lib
50         $(MAKE) ./$(outdir)/$(@F) -C $(depth)/lib
51 #
52