From 5b681684e0420ee65bb6bea5ab7833cd901b0efc Mon Sep 17 00:00:00 2001 From: fred Date: Sun, 24 Mar 2002 20:11:16 +0000 Subject: [PATCH] lilypond-1.0.4 --- lily/GNUmakefile | 30 ++++++++++++++++++++++++++++++ make/generic-rules.make | 23 +++++++++++++++++++++++ stepmake/stepmake/po-rules.make | 28 ++++++++++++++++++++++++++++ 3 files changed, 81 insertions(+) create mode 100644 lily/GNUmakefile create mode 100644 make/generic-rules.make create mode 100644 stepmake/stepmake/po-rules.make diff --git a/lily/GNUmakefile b/lily/GNUmakefile new file mode 100644 index 0000000000..47338e5c36 --- /dev/null +++ b/lily/GNUmakefile @@ -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 index 0000000000..1d885c7920 --- /dev/null +++ b/make/generic-rules.make @@ -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 index 0000000000..ccff7a15f3 --- /dev/null +++ b/stepmake/stepmake/po-rules.make @@ -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) -- 2.39.2