-# title generic make targets
-# file make/Targets.make
-
.PHONY : all clean config default diff dist doc exe help html lib TAGS\
po
@echo -e "\
all update everything\n\
clean remove all genated stuff in $(outdir)\n\
+ check run selftest\n\
default same as the empty target\n\
exe update all executables\n\
help this help\n\
Note that all commands recurse into SUBDIRS;\n\
prepend \`local-' to do only cwd, eg: local-clean\n\
"\
-#
local-help:
$(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:
install-strip:
$(MAKE) INSTALL="$(INSTALL) -s" install
+final-install:
+
install: local-install
$(LOOP)
+ $(MAKE) final-install
local-install:
$(foreach i, $(EXTRA_DOC_FILES),\
cp -r $(i) $(prefix)/doc/$(package) &&) true
-include $(stepdir)/package.make
-
-include $(outdir)/dummy.dep $(DEP_FILES)
+include $(outdir)/dummy.dep $(DEP_FILES) # expect a warning here
$(outdir)/dummy.dep:
-mkdir -p $(outdir)
local-check:
# ugh. ugh ugh ugh
-$(depth)/$(configuration).make: $(depth)/configure
+$(config_make): $(topdir)/configure
@echo "************************************************************"
@echo "configure changed! You should probably reconfigure manually."
@echo "************************************************************"
- (cd $(depth); ./config.status)
+ (cd $(builddir); ./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)
+
+
+################ website.
+
+local-WWW:
+local-WWW-post:
+local-web-post:
+
+WWW: local-WWW
+ $(LOOP)
+ $(MAKE) local-WWW-post
+
+web:
+ $(MAKE) out=www WWW
+ $(MAKE) local-web-post
+
+local-help: www-targets-help
+
+www-targets-help:
+ @echo -e "\
+ web update website in out-www\n\
+ web-install install website documentation in (docdir=$(local_package_docdir))\n\
+ web-clean clean out-www\n\
+"