NAME = make
SUBDIRS =
-# list of distribution files:
-
# two outdir files are distributed, since they make sense to have without running
# configure and make.
IN_FILES = $(wildcard *.in)
-EXTRA_DISTFILES = $(IN_FILES) $(outdir)/lilypond.spec $(outdir)/lilypond.lsm $(outdir)/lelievijver.lsm
+EXTRA_DISTFILES = $(IN_FILES)
+OUT_DISTFILES=$(outdir)/lilypond.spec $(outdir)/lilypond.lsm $(outdir)/lelievijver.lsm
#
# generic variables:
#
include ./$(depth)/make/Variables.make
include ./$(depth)/make/Files.make
-#
-
-# generic targets and rules:
-#
include ./$(depth)/make/Targets.make
include ./$(depth)/make/Rules.make
-#
+
+
+local-maintainerclean:
+ rm lilypond.spec $(wildcard *.lsm)
spec: $(outdir)/lilypond.spec
$(outdir)/%.lsm: %.lsm.in $(depth)/VERSION
cat $< | $(sed-version) | $(sed-date) > $@
+
# target all:
#
all: default
-ifdef SUBDIRS
- set -e; for i in $(SUBDIRS); do $(MAKE) -C $$i all; done
-endif
-
-#
-
-# platform specific variables,
-#
-#include ./$(depth)/make/out/Site.make
-#
-
-# where to do this ?
-.PRECIOUS: $(makeout)/Site.make
-
+ $(LOOP)
# dependency list of executable:
#
make-all-outdirs: make-outdir
- set -e; for i in $(SUBDIRS); do $(MAKE) -C $$i make-all-outdirs; done
+ $(LOOP)
make-outdir:
-mkdir $(OUTDIR_NAME)
# be careful about deletion.
clean: localclean
- rm -f $(outdir)/*
+ -rm -f $(outdir)/*
touch $(outdir)/dummy.dep
-ifdef SUBDIRS
- set -e; for i in $(SUBDIRS); do $(MAKE) -C $$i clean; done
-endif
+ $(LOOP)
+
+distclean: clean
+ $(LOOP)
+ $(MAKE) local-distclean
+
+maintainerclean:
+ $(LOOP)
+ $(MAKE) local-maintainerclean
+ $(MAKE) local-distclean
-distclean: subdir-distclean local-distclean
-subdir-distclean:
-ifdef SUBDIRS
- set -e; for i in $(SUBDIRS); do $(MAKE) -C $$i clean; done
-endif
# configure:
#
rm -rf $(distdir)/
-localdist: $(DISTFILES)
- if [ -d out ]; then \
- mkdir $(distdir)/$(localdir)/out; \
- touch $(distdir)/$(localdir)/out/dummy.dep; \
- fi
+localdist: $(DISTFILES) $(OUT_DISTFILES)
+ touch $(outdir)/dummy.dep; \
+ mkdir $(distdir)/$(localdir)/out; \
$(LN) $(DISTFILES) $(distdir)/$(localdir)
+ $(LN) $(outdir)/dummy.dep $(OUT_DISTFILES) $(distdir)/$(localdir)/out
ifdef SUBDIRS
set -e; for i in $(SUBDIRS); do mkdir $(distdir)/$(localdir)/$$i; \
$(MAKE) localdir=$(localdir)/$$i -C $$i localdist; done
-etags -CT $(all-tag-sources) $(ERROR_LOG)
-ctags -CT $(all-tag-sources) $(ERROR_LOG)
endif
-ifdef SUBDIRS
- set -e; for i in $(SUBDIRS); do $(MAKE) -C $$i TAGS ; done
-endif
+ $(LOOP)
# version stuff:
local-distclean:
+local-maintainerclean:
+
install-strip:
$(MAKE) INSTALL="$(INSTALL) -s" install
install: localinstall
-ifdef SUBDIRS
- set -e; for i in $(SUBDIRS); do $(MAKE) -C $$i install; done
-endif
+ $(LOOP)
localinstall:
uninstall: localuninstall
-ifdef SUBDIRS
- set -e; for i in $(SUBDIRS); do $(MAKE) -C $$i uninstall; done
-endif
+ $(LOOP)
localuninstall: