2 # project LilyPond -- the musical typesetter
3 # title generic make rules
6 # Copyright (c) 1997 by
7 # Jan Nieuwenhuizen <jan@digicash.com>
8 # Han-Wen Nienhuys <hanwen@stack.nl>
10 # this is supposed to clear all suffixes:
12 # so why does make still consider xx.y : RCS/xx.y,v ?
13 # there is no suffix ,v anymore!
14 .SUFFIXES: .cc .o .hh .y .l .pod .txt .1 .dep
16 # cancel implicit rules:
18 # shit, how to get rid of these stupid built-in rules?
19 # include ./$(depth)/make/Builtin-rules.make
27 $(outdir)/%.o: $(outdir)/%.cc
33 # mv $(shell basename $@ .cc ).tab.h $(include-lib)/$(shell basename $@ .cc).hh
34 # mv $(shell basename $@ .cc ).tab.h $(outdir)/$(shell basename $@ .cc).hh
35 mv $(shell basename $@ .cc ).tab.c $@
39 mv $(shell basename $@ .hh ).tab.h $@
40 mv $(shell basename $@ .hh ).tab.c $(outdir)/$(shell basename $@ .hh).cc
43 $(FLEX) -Cfe -p -p -t $< > $@
45 $(outdir)/%.text: $(outdir)/%.1
46 groff -man -Tascii $< > $@
48 $(depth)/%.text: $(outdir)/%.text
52 pod2man --center="LilyPond documentation" --section="0"\
53 --release="LilyPond $(TOPLEVEL_MAJOR_VERSION).$(TOPLEVEL_MINOR_VERSION).$(TOPLEVEL_PATCH_LEVEL)" $< > $@
63 # build and config stuff: (could make this generic default rule...)