]> git.donarmstrong.com Git - lilypond.git/blobdiff - make/Rules.make
release: 0.1.18
[lilypond.git] / make / Rules.make
index 0e06b46cac9898b6daeeee727651a710edfde1d0..a09bf62d74924c637c7c1f531c492499bf38d9a0 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  .dep
 
-# cancel implicit rules:
-#
-# shit, how to get rid of these stupid built-in rules?
-# include ./$(depth)/make/Builtin-rules.make
-#
 
 # compile rules:
 #
@@ -28,10 +24,7 @@ $(outdir)/%.o: $(outdir)/%.cc
        $(DO_CXX_COMPILE)
 
 $(outdir)/%.cc: %.y
-#      $(BISON) -d $<
        $(BISON) $<
-#      mv $(shell basename $@ .cc ).tab.h $(include-lib)/$(shell basename $@ .cc).hh
-#      mv $(shell basename $@ .cc ).tab.h $(outdir)/$(shell basename $@ .cc).hh
        mv $(shell basename $@ .cc ).tab.c $@
 
 $(outdir)/%.hh: %.y
@@ -40,18 +33,9 @@ $(outdir)/%.hh: %.y
        mv $(shell basename $@ .hh ).tab.c $(outdir)/$(shell basename $@ .hh).cc
 
 $(outdir)/%.cc: %.l
-       $(FLEX)  -t $< > $@
-
-$(outdir)/%.text: $(outdir)/%.1
-       groff -man -Tascii $< > $@
-
-$(depth)/%.text: $(outdir)/%.text
-       cp $< $@
-
-$(outdir)/%.1: %.pod
-       pod2man --center="LilyPond documentation" --section="0"\
-               --release="LilyPond $(TOPLEVEL_MAJOR_VERSION).$(TOPLEVEL_MINOR_VERSION).$(TOPLEVEL_PATCH_LEVEL)" $< > $@
-#
+       $(FLEX) -Cfe -p -p -t $< > $@
+# could be faster:
+#      $(FLEX) -8 -Cf -t $< > $@
 
 # outdirs:
 #
@@ -63,23 +47,9 @@ $(outdir)/%.1: %.pod
 # build and config stuff: (could make this generic default rule...)
 #
 %/.build:
-       echo 0 >$@
+       echo 0 > $@
 
 
-# specific stuff:
-#
-$(LIBFLOWER): check-flower-deps
-
-check-flower-deps:
-       $(MAKE)  -C $(depth)/flower/ $(outdir)/$(notdir $(LIBFLOWER))
-
-check-lily-deps: check-flower-deps
-       $(MAKE)  -C $(depth)/lib
-
-check-doc-deps:
-       $(MAKE) -C $(depth)/Documentation
-
-$(LIBLILY): dummy
-       $(MAKE) ./$(outdir)/$(@F) -C $(depth)/lib
-#
-
+$(depth)/%.text: check-doc-deps
+       rm -f $@
+       ln `find ${depth}/Documentation -name $@|head -1` .