]> git.donarmstrong.com Git - lilypond.git/commitdiff
lilypond-0.0.39
authorfred <fred>
Wed, 5 Mar 1997 21:07:31 +0000 (21:07 +0000)
committerfred <fred>
Wed, 5 Mar 1997 21:07:31 +0000 (21:07 +0000)
make/Rules.make [new file with mode: 0644]

diff --git a/make/Rules.make b/make/Rules.make
new file mode 100644 (file)
index 0000000..0c2a549
--- /dev/null
@@ -0,0 +1,52 @@
+#
+# project  LilyPond -- the musical typesetter
+# title           generic make rules
+# file    make/Rules.make
+#
+# Copyright (c) 1997 by    
+#      Jan Nieuwenhuizen <jan@digicash.com>
+#      Han-Wen Nienhuys <hanwen@stack.nl>
+
+.SUFFIXES:
+.SUFFIXES: .cc .o .hh .y .l .pod .txt .1 .dep
+
+# compile rules:
+#
+$(outdir)/%.o: %.cc
+       $(DODEP)\
+       $(CXX) -c $(CXXFLAGS) $(CXX_OUTPUT_OPTION) 
+
+$(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
+       $(BISON) -d $<
+       mv $(shell basename $@ .hh ).tab.h $@
+       mv $(shell basename $@ .hh ).tab.c $(outdir)/$(shell basename $@ .hh).cc
+
+$(outdir)/%.cc: %.l
+       $(FLEX)  -t $< > $@
+
+$(outdir)/%.text: $(outdir)/%.1
+       groff -man -Tascii $< > $@
+
+$(outdir)/%.1: %.pod
+       pod2man --center="LilyPond documentation" --section="0"\
+               --release="LilyPond $(MAJVER).$(MINVER).$(PATCHLEVEL)" $< > $@
+#
+
+# specific stuff:
+#
+$(LIBFLOWER): check-flower-version
+#      $(MAKE) -C ./$(depth)/flower/lib
+       $(MAKE) ./$(outdir)/$(@F) -C $(depth)/flower/lib
+#
+$(LIBLILY): check-flower-version $(lily-version)
+#      $(MAKE) -C ./$(depth)/lib
+       $(MAKE) ./$(outdir)/$(@F) -C $(depth)/lib
+#
+