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:
13 # so why does make still consider xx.y : RCS/xx.y,v ?
14 # there is no suffix ,v anymore!
15 .SUFFIXES: .cc .o .hh .y .l .pod .text .1 .dep .html
23 $(outdir)/%.o: $(outdir)/%.cc
29 # mv $(shell basename $@ .cc ).tab.h $(include-lib)/$(shell basename $@ .cc).hh
30 # mv $(shell basename $@ .cc ).tab.h $(outdir)/$(shell basename $@ .cc).hh
31 mv $(shell basename $@ .cc ).tab.c $@
35 mv $(shell basename $@ .hh ).tab.h $@
36 mv $(shell basename $@ .hh ).tab.c $(outdir)/$(shell basename $@ .hh).cc
39 $(FLEX) -Cfe -p -p -t $< > $@
41 # $(FLEX) -8 -Cf -t $< > $@
43 $(outdir)/%.text: $(outdir)/%.1
44 groff -man -Tascii $< > $@
46 $(depth)/%.text: $(outdir)/%.text
49 $(outdir)/%.html: %.pod
51 mv $(notdir $@) $(outdir)/
69 # build and config stuff: (could make this generic default rule...)
75 $(depth)/%.text: check-doc-deps
77 ln `find ${depth}/Documentation -name $@|head -1` .
79 $(outdir)/%.xpm: %.gif
80 giftopnm $< | ppmtoxpm > $@
82 $(outdir)/%.ps: $(outdir)/%.dvi
85 $(outdir)/%.dvi: $(outdir)/%.mudtex
86 latex '\batchmode \input $<'
88 $(outdir)/%.mudtex: %.doc
89 $(depth)/bin/mudela-book --outdir=$(outdir)/ --outname=$(notdir $@) $<