]> git.donarmstrong.com Git - lilypond.git/blobdiff - stepmake/stepmake/generic-targets.make
* input/test/ambitus-mixed.ly (texidoc): new file.
[lilypond.git] / stepmake / stepmake / generic-targets.make
index 9ae45029618194314280f12c00b4c9af6c2a5561..806a125b2a7e46b3bb4fa46bee8b151ef58d714b 100644 (file)
@@ -43,6 +43,8 @@ Usage: make ["VARIABLE=value"]... [TARGET]\n\
 \n\
 Targets:\n"
 
+# urg
+webdir = $(local_package_docdir)
 help: generic-help local-help
        @echo -e "\
   all         update everything\n\
@@ -53,6 +55,9 @@ help: generic-help local-help
   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\
@@ -90,12 +95,13 @@ TAGS:
 
        $(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 $< $@
@@ -113,11 +119,13 @@ local-maintainerclean:
 install-strip:
        $(MAKE) INSTALL="$(INSTALL) -s" install
 
+ifneq ($(strip $(depth)),.)
 final-install:
+       $(LOOP)
 
 install: local-install
        $(LOOP)
-       $(MAKE) final-install
+endif
 
 local-install:
 
@@ -144,11 +152,11 @@ check: local-check
 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.
 
 
@@ -163,9 +171,19 @@ diff:
 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