-# 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
-