]> git.donarmstrong.com Git - lilypond.git/commitdiff
lilypond-1.0.1
authorfred <fred>
Sun, 24 Mar 2002 20:13:20 +0000 (20:13 +0000)
committerfred <fred>
Sun, 24 Mar 2002 20:13:20 +0000 (20:13 +0000)
make/Rules.make

index f7f3d7fe4ac24fdd0b97d845d280a69c1ecbbe2f..8ea9451bdcca8fd1684e4b4dd57deed36226b4c2 100644 (file)
@@ -1,60 +1,29 @@
-#
-# project  LilyPond -- the musical typesetter
-# title           generic make rules
+# title           package specific rules
 # file    make/Rules.make
-#
-# Copyright (c) 1997 by    
-#      Jan Nieuwenhuizen <jan@digicash.com>
-#      Han-Wen Nienhuys <hanwen@stack.nl>
-
-# this is supposed to clear all suffixes:
-.SUFFIXES:
-
-.SUFFIXES: .cc .o .hh .y .l  .dep
-
-
-# compile rules:
-#
-$(outdir)/%.o: %.cc
-       $(DO_CXX_COMPILE)
-
-$(outdir)/%.o: $(outdir)/%.cc
-       $(DO_CXX_COMPILE)
-
-$(outdir)/%.cc: %.yy
-       $(BISON) $<
-       mv $<.tab.c $@
-
-$(outdir)/%.hh: %.yy
-       $(BISON) -d $<
-       mv $<.tab.h $@
-       mv $<.tab.c $(outdir)/$(shell basename $@ .hh).cc
-
-$(outdir)/%.cc: %.ll
-       $(FLEX) -Cfe -p -p -t $< > $@
-# could be faster:
-#      $(FLEX) -8 -Cf -t $< > $@
-
-$(outdir)/%: %.m4
-       $(M4) $< > $@
 
 # urg
 $(outdir)/%.ly: %.lym4
        $(M4) $< | sed "s/\`/,/g" > $@
 
-# outdirs:
-#
-# ?$(outdir)/%.dep:
-%.dep:
-       touch $@
+$(outdir)/%: %.in
+       rm -f $@
+       cat $< | $(sed-atfiles) | $(sed-atvariables) > $@
 
-%.gz: %
-       gzip -c9 $< > $@
 
-$(depth)/%$(DOTTEXT): check-doc-deps
-       rm -f $@
-       ln `find ${depth}/Documentation -name ${@F} -print|head -1 ` $@
 
-$(outdir)/%.ps: $(outdir)/%.dvi
-       dvips -o $@ $<
+include $(depth)/make/Substitute.make
+
+# $(depth)/make/$(outdir)/%.make: $(depth)/make/%.in
+#      rm -f $@
+#      echo "$(basename $(@F)) = \\" > $@
+#      cat $< | $(sed-newline) | $(sed-endline) | $(sed-quotes) >> $@
+#      echo >> $@
+#      echo >> $@
+
+# HUH???
+$(outdir)/%.hh: $(doc-dir)/%.in
+       rm -f $@
+       echo '_(' > $@
+       cat $< | $(sed-quotes) | $(sed-newline) | $(sed-quote-line) >> $@
+       echo ');' >> $@