]> git.donarmstrong.com Git - lilypond.git/blobdiff - make/Makefile
release: 0.1.59
[lilypond.git] / make / Makefile
index 52b9e556375b2a98f31249a7fee41e4b50799a12..c50099ce3132d55d53718eec2885f023a0fd4b4e 100644 (file)
@@ -15,14 +15,16 @@ depth = ..
 
 # identify module:
 #
-NAME = make
 SUBDIRS = 
 
 # two outdir files are distributed, since they make sense to have without running 
 # configure and make.
+
+LSMENTRY=$(outdir)/lilypond.lsm
+RPMSPEC=$(outdir)/lilypond.spec 
 IN_FILES = $(wildcard *.in)
 EXTRA_DISTFILES = $(IN_FILES)
-OUT_DISTFILES=$(outdir)/lilypond.spec $(outdir)/lilypond.lsm $(outdir)/lelievijver.lsm
+OUT_DISTFILES= $(outdir)/lelievijver.lsm $(LSMENTRY) $(RPMSPEC)
 #
 
 # generic variables:
@@ -32,13 +34,10 @@ include ./$(depth)/make/Files.make
 include ./$(depth)/make/Targets.make
 include ./$(depth)/make/Rules.make
 
+default: $(RPMSPEC) $(LSMENTRY)
 
-local-maintainerclean:
-       rm lilypond.spec $(wildcard *.lsm)
-
-spec: $(outdir)/lilypond.spec
 
-rpmdocs=$(addprefix Documentation/out/, $(notdir $(shell ls $(depth)/Documentation/$(outdir)/*.txt)))\
+rpmdocs=$(addprefix Documentation/out/, $(notdir $(shell  find $(depth)/Documentation/ -name '*.txt' ))) \
        BUGS TODO NEWS DEDICATION ANNOUNCE README
 rpmmudocs=$(addprefix Documentation/, $(notdir $(shell ls $(depth)/Documentation/*.doc)))
 rpmdvis=$(rpmmudocs:.doc=.dvi)
@@ -51,7 +50,7 @@ sed-date=sed 's!@DATE@!${date}!g'
 sed-examples = sed 's!@EXAMPLE_LYS@!${rpmexamples} ${rpmmudocs}!g'
 sed-docs=sed 's!@TEXT_DOCS@!${rpmdocs}!g'
 
-$(outdir)/lilypond.spec: lilypond.spec.in $(depth)/VERSION
+$(outdir)/%.spec: %.spec.in $(depth)/VERSION
        cat $< | $(sed-version) | $(sed-docs) | $(sed-examples) > $@
 
 $(outdir)/%.lsm: %.lsm.in $(depth)/VERSION