chiark / gitweb /
fix semantics to match PUBLISHDIR
authoraph <aph@313b444b-1b9f-4f58-a734-7bb04f332e8d>
Sun, 15 Nov 1998 09:23:17 +0000 (09:23 +0000)
committeraph <aph@313b444b-1b9f-4f58-a734-7bb04f332e8d>
Sun, 15 Nov 1998 09:23:17 +0000 (09:23 +0000)
git-svn-id: svn://anonscm.debian.org/ddp/manuals/trunk/developers-reference@718 313b444b-1b9f-4f58-a734-7bb04f332e8d

Makefile

index 2cdfb48..37dc8fe 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,13 +1,14 @@
-# Makefile, only used for the DDP manuals.sgml area
+# Makefile, used for the DDP manuals.sgml area
 
 MANUAL         := $(shell basename $(shell pwd))
-PUBLISHDIR     := ../../../public_html/manuals.html/$(MANUAL)
+PUBLISHDIR     := ../../../public_html/manuals.html
 
 publish:       build
-       [ -d ../../../public_html ] || exit 1
-       rm -f $(PUBLISHDIR)/*.html
-       install -d $(PUBLISHDIR)
-       install -m 644 --preserve-timestamps $(MANUAL).html/*.html $(PUBLISHDIR)
+       [ -d $(PUBLISHDIR) ] || exit 1
+       rm -f $(PUBLISHDIR)/$(MANUAL)/*.html
+       install -d -m 755 $(PUBLISHDIR)/$(MANUAL)
+       install -m 644 --preserve-timestamps $(MANUAL).html/*.html      \
+          $(PUBLISHDIR)/$(MANUAL)
 
 .PHONY:        build
 build: