# 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:
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)
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