X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=Makefile;h=37dc8fe95592fedcd96c10e6b11a4ce11bf48904;hb=6c858f8b2fa640ee18f51ee1d16739147de43567;hp=ba1fcfca4521cecc38e1feb7aa2277c7f8c0aa0d;hpb=2bf7cbea4b0d72858424d2e02a5aaf28d39ac355;p=developers-reference.git diff --git a/Makefile b/Makefile index ba1fcfc..37dc8fe 100644 --- a/Makefile +++ b/Makefile @@ -1,15 +1,17 @@ -# 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: html - [ -d ../../../public_html ] || exit 1 - rm -f $(PUBLISHDIR)/*.html - install -d $(PUBLISHDIR) - install -m 644 --preserve-timestamps $(MANUAL).html/*.html $(PUBLISHDIR) +publish: build + [ -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) -html: +.PHONY: build +build: debian/rules build clean: