-# title generic make targets
-# file make/Targets.make
-
.PHONY : all clean config default diff dist doc exe help html lib TAGS\
po
Note that all commands recurse into SUBDIRS;\n\
prepend \`local-' to do only cwd, eg: local-clean\n\
"\
-#
local-help:
esac
case "$(OUT_DIST_FILES)x" in x) ;; *) \
- mkdir -p $(distdir)/$(localdir)/out; \
- $(LN) $(OUT_DIST_FILES) $(distdir)/$(localdir)/out;; \
+ mkdir -p $(distdir)/$(localdir)/$(outdir); \
+ $(LN) $(OUT_DIST_FILES) $(distdir)/$(localdir)/$(outdir);; \
esac
# $(foreach i, $(SUBDIRS), $(MAKE) distdir=../$(distdir) localdir=$(localdir)/$(i) -C $(i) local-dist &&) true
# absolute for installed stepmake
$(outdir)/config.h: $(config_h)
cp -p $< $@
-# should this be in Rules?
configure: configure.in aclocal.m4
- autoconf
+ NOCONFIGURE=yes $(srcdir)/autogen.sh
chmod +x configure
local-clean:
$(foreach i, $(EXTRA_DOC_FILES),\
cp -r $(i) $(prefix)/doc/$(package) &&) true
-include $(stepdir)/package.make
-
include $(outdir)/dummy.dep $(DEP_FILES)
$(outdir)/dummy.dep:
@echo "************************************************************"
(cd $(depth); ./config.status)
touch $@ # do something for multiple simultaneous configs.
+
+
+deb:
+ $(MAKE) -C $(depth)/debian
+ cd $(depth) && debuild
+
+diff:
+ $(PYTHON) $(step-bindir)/package-diff.py --outdir=$(topdir)/$(outdir) --package=$(topdir) $(makeflags)
+ -ln -f $(depth)/$(outdir)/$(distname).diff.gz $(patch-dir)
+
+release:
+ $(PYTHON) $(step-bindir)/release.py --outdir=$(topdir)/$(outdir) --package=$(topdir)
+
+rpm: $(depth)/$(package-icon) dist
+ @echo "Assuming Red Hat system" #FIXME: check distro, then issue rpm
+ $(MAKE) -C $(depth)/make
+ cd $(depth) && rpm -bb make/$(outdir)/lilypond.redhat.spec
+# su -c 'rpm -tb $(depth)/$(outdir)/$(distname).tar.gz'
+