\n\
Targets:\n"
+# urg
+webdir = $(local_package_docdir)
help: generic-help local-help
@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\
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.
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'
+################ website.
+
+local-WWW:
+local-WWW-post:
+web-install:
+
+WWW: local-WWW
+ $(LOOP)
+
+WWW-post: local-WWW-post
+ $(LOOP)
+
+web:
+ $(MAKE) out=www WWW
+ $(MAKE) out=www WWW-post