X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=Makefile;h=914d8fe1890f004b94da1e4df0610b540bc1ede8;hb=758adf211d8233dc6b23b57135a909e776f76ef8;hp=2cdfb48cb2c41fc0c2850edcf5f1e87f369d4f4a;hpb=fa6ce3511a872ba339f8ec4042d6b60c73fb6b95;p=developers-reference.git diff --git a/Makefile b/Makefile index 2cdfb48..914d8fe 100644 --- a/Makefile +++ b/Makefile @@ -1,18 +1,21 @@ -# 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) +MANUAL := $(notdir $(shell pwd)) +PUBLISHDIR := ../../../public_html/manuals.html + +all: build 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: debian/rules build +.PHONY: clean clean: debian/rules clean -