chiark / gitweb /
make ddp publish rule really publish
authoraph <aph@313b444b-1b9f-4f58-a734-7bb04f332e8d>
Mon, 28 Sep 1998 05:46:52 +0000 (05:46 +0000)
committeraph <aph@313b444b-1b9f-4f58-a734-7bb04f332e8d>
Mon, 28 Sep 1998 05:46:52 +0000 (05:46 +0000)
git-svn-id: svn://anonscm.debian.org/ddp/manuals/trunk/developers-reference@661 313b444b-1b9f-4f58-a734-7bb04f332e8d

Makefile

index ccff8d6d5ce75bfa5f481c70a12e7a062334a569..ce1856420a863993624600550fc89b0f67a5f8eb 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,17 @@
 # Makefile, only used for the DDP manuals.sgml area
 
-all:
+MANUAL         := $(shell basename $(shell pwd))
+PUBLISHDIR     := ../../../public_html/manuals.html/$(THISDIR)
+
+publish:       html
+       [ -d ../../../public_html ] || exit 1
+       rm -f $(PUBLISHDIR)/*.html
+       install -d $(PUBLISHDIR)
+       install -m 644 --preserve-timestamps $(MANUAL).html/*.html $(PUBLISHDIR)
+
+html:
        debian/rules build
 
 clean:
        debian/rules clean
+