\n\
Targets:\n"
+# urg
+webdir = $(local_package_docdir)
help: generic-help local-help
@echo -e "\
all update everything\n\
help this help\n\
install install programs and data (prefix=$(prefix))\n\
lib update all libraries\n\
+ web update website in out-www\n\
+ web-install install website documentation in (webdir=$(webdir))\n\
+ web-clean clean out-www\n\
TAGS genarate tagfiles\n\
\n\
Make may be invoked from any subdirectory\n\
$(LOOP)
-# ugh . -> $(outdir)
-$(outdir)/VERSION: $(depth)/VERSION
- cp -p $< $@
-
-$(outdir)/version.hh: $(outdir)/VERSION
- $(PYTHON) $(step-bindir)/make-version.py $< > $@
+$(outdir)/version.hh: $(config_make)
+ $(PYTHON) $(step-bindir)/make-version.py PACKAGE_NAME=$(PACKAGE_NAME) \
+ MAJOR_VERSION=$(MAJOR_VERSION) \
+ MINOR_VERSION=$(MINOR_VERSION) \
+ PATCH_LEVEL=$(PATCH_LEVEL) \
+ MY_PATCH_LEVEL=$(MY_PATCH_LEVEL) \
+ > $@
$(outdir)/config.h: $(config_h)
cp -p $< $@
install-strip:
$(MAKE) INSTALL="$(INSTALL) -s" install
+ifneq ($(strip $(depth)),.)
final-install:
+ $(LOOP)
install: local-install
$(LOOP)
- $(MAKE) final-install
+endif
local-install:
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.
local-WWW:
local-WWW-post:
+web-install:
WWW: local-WWW
$(LOOP)
- $(MAKE) local-WWW-post
-web:
- $(MAKE) out=www WWW
-
-local-help: www-targets-help
+WWW-post: local-WWW-post
+ $(LOOP)
-www-targets-help:
- @echo -e "\
- web update website in out-www\n\
- web-clean clean out-www\n\
-"
+web:
+ $(MAKE) out=www WWW
+ $(MAKE) out=www WWW-post