]> git.donarmstrong.com Git - lilypond.git/blobdiff - make/Rules.make
release: 0.0.63
[lilypond.git] / make / Rules.make
index b7ec413b65f1b2358eb53643c6bc0878f7916e28..36986881e580fcd73ddac99cede9dd40e134144e 100644 (file)
@@ -9,15 +9,11 @@
 
 # this is supposed to clear all suffixes:
 .SUFFIXES:
+
 # so why does make still consider xx.y : RCS/xx.y,v ?
 # there is no suffix ,v anymore!
-.SUFFIXES: .cc .o .hh .y .l .pod .txt .1 .dep
+.SUFFIXES: .cc .o .hh .y .l .pod .text .1 .dep .html
 
-# cancel implicit rules:
-#
-# shit, how to get rid of these stupid built-in rules?
-# include ./$(depth)/make/Builtin-rules.make
-#
 
 # compile rules:
 #
@@ -41,6 +37,8 @@ $(outdir)/%.hh: %.y
 
 $(outdir)/%.cc: %.l
        $(FLEX) -Cfe -p -p -t $< > $@
+# could be faster:
+#      $(FLEX) -8 -Cf -t $< > $@
 
 $(outdir)/%.text: $(outdir)/%.1
        groff -man -Tascii $< > $@
@@ -48,6 +46,10 @@ $(outdir)/%.text: $(outdir)/%.1
 $(depth)/%.text: $(outdir)/%.text
        cp $< $@
 
+$(outdir)/%.html: %.pod
+       $(pod2html)  $<
+       mv $(notdir $@) $(outdir)/
+
 $(outdir)/%.5: %.pod
        $(pod2groff)
 $(outdir)/%.1: %.pod
@@ -67,5 +69,10 @@ $(outdir)/%.1: %.pod
 # build and config stuff: (could make this generic default rule...)
 #
 %/.build:
-       echo 0 >$@
+       echo 0 > $@
+
+
+$(depth)/%.text: check-doc-deps
+       rm -f $@
+       ln `find ${depth}/Documentation -name $@|head -1` .