]> git.donarmstrong.com Git - lilypond.git/commitdiff
lilypond-1.0.4
authorfred <fred>
Sun, 24 Mar 2002 20:11:16 +0000 (20:11 +0000)
committerfred <fred>
Sun, 24 Mar 2002 20:11:16 +0000 (20:11 +0000)
lily/GNUmakefile [new file with mode: 0644]
make/generic-rules.make [new file with mode: 0644]
stepmake/stepmake/po-rules.make [new file with mode: 0644]

diff --git a/lily/GNUmakefile b/lily/GNUmakefile
new file mode 100644 (file)
index 0000000..47338e5
--- /dev/null
@@ -0,0 +1,30 @@
+# title           makefile for lilypond
+# file    lily/Makefile 
+
+depth = ..
+
+NAME = lilypond
+SUBDIRS = include
+
+EXTRA_DIST_FILES = VERSION 
+MODULE_LIBS=$(depth)/lib $(depth)/flower
+
+STEPMAKE_TEMPLATES= c++ executable 
+
+include $(depth)/make/stepmake.make 
+
+# force these: Make can't know these have to be generated in advance
+$(outdir)/my-lily-parser.o: $(outdir)/parser.hh
+$(outdir)/my-lily-lexer.o: $(outdir)/parser.hh
+$(outdir)/lexer.o: $(outdir)/parser.hh
+
+
+$(outdir)/lily-version.o: $(outdir)/version.hh
+
+$(outdir)/main.o: $(outdir)/BLURB.hh $(outdir)/COPERTINA.hh $(outdir)/FLAPTEKST.hh
+
+
+# ugh . -> $(outdir)
+VERSION: $(depth)/VERSION
+       cp $< $@
+
diff --git a/make/generic-rules.make b/make/generic-rules.make
new file mode 100644 (file)
index 0000000..1d885c7
--- /dev/null
@@ -0,0 +1,23 @@
+# title           package specific rules
+# file    make/Rules.make
+
+# urg
+$(outdir)/%.ly: %.lym4
+       $(M4) $< | sed "s/\`/,/g" > $@
+
+$(outdir)/%: %.in
+       rm -f $@
+       cat $< | $(sed-atfiles) | $(sed-atvariables) > $@
+
+
+
+include $(depth)/make/substitute.make
+
+
+# HUH???
+$(outdir)/%.hh: $(doc-dir)/%.in
+       rm -f $@
+       echo '_(' > $@
+       cat $< | $(sed-quotes) | $(sed-newline) | $(sed-quote-line) >> $@
+       echo ');' >> $@
+
diff --git a/stepmake/stepmake/po-rules.make b/stepmake/stepmake/po-rules.make
new file mode 100644 (file)
index 0000000..ccff7a1
--- /dev/null
@@ -0,0 +1,28 @@
+# Porules.make
+
+.SUFFIXES: .po .mo
+
+$(outdir)/%.mo: %.po
+       $(MSGFMT) -o $@ $<
+
+# sed-pofile = sed 's/^. \#: .*//'
+sed-pofile = sed 's/^\#: .*//'
+sed-makestuff = sed 's/[a-zA-Z_/]*make\[[0-9]*\].*//'
+sed-edstuff = sed 's/[ \.,adic0-9]*//' | sed 's/---//' | sort -u
+
+po-update:
+       $(foreach i,$(CATALOGS), \
+         rm -f $(po-dir)/$(outdir)/$(i).po; \
+         tupdate $(po-dir)/$(outdir)/$(package).po $(po-dir)/$(i).po \
+           > $(po-dir)/$(outdir)/$(i).po && ) true
+       $(foreach i,$(CATALOGS), \
+         changes=`$(MAKE) --silent -C $(po-dir) LANGUAGE=$$i show-po-changes $(ERROR_LOG) | $(sed-makestuff)`; \
+         if test "$$changes" != "" ; then \
+           echo "*** Changes for language $$i; check po/$(outdir)/$$i.po ***"; \
+           echo -e "changes: \`$$changes'";\
+         fi; && ) true
+
+
+show-po-changes:
+       diff -e $(po-dir)/$(outdir)/$(LANGUAGE).po $(po-dir)/$(LANGUAGE).po \
+         | $(sed-pofile) | $(sed-edstuff)