chiark / gitweb /
rename html rule to build rule, since it doesn't just make html
[developers-reference.git] / Makefile
index ccff8d6d5ce75bfa5f481c70a12e7a062334a569..2cdfb48cb2c41fc0c2850edcf5f1e87f369d4f4a 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,18 @@
 # Makefile, only used for the DDP manuals.sgml area
 
-all:
+MANUAL         := $(shell basename $(shell pwd))
+PUBLISHDIR     := ../../../public_html/manuals.html/$(MANUAL)
+
+publish:       build
+       [ -d ../../../public_html ] || exit 1
+       rm -f $(PUBLISHDIR)/*.html
+       install -d $(PUBLISHDIR)
+       install -m 644 --preserve-timestamps $(MANUAL).html/*.html $(PUBLISHDIR)
+
+.PHONY:        build
+build:
        debian/rules build
 
 clean:
        debian/rules clean
+