+
+DESTDIR = /tmp/public_html
+
TEMPLATESROOT = ../templates
XMLROOT = ../xml
XSLROOT = ../xsl
+
DOCUMENTS = \
index.html \
home.html \
rm -f $(DOCUMENTS)
.PHONY: clean
+install: $(DOCUMENTS)
+ mkdir -p $(DESTDIR)/html
+ for i in $(dir $(DOCUMENTS)); do \
+ mkdir -p $(DESTDIR)/html/$$i; \
+ done
+ for i in $(DOCUMENTS); do \
+ cp $$i $(DESTDIR)/html/$$i; \
+ done
+ mkdir -p $(DESTDIR)/images
+ cp ../images/*.* $(DESTDIR)/images
+ mkdir -p $(DESTDIR)/style
+ cp ../style/*.css $(DESTDIR)/style
+ sed s/menu\\.html/html\\/menu\\.html/ <index.html | sed s/home\\.html/html\\/home\\.html/ >$(DESTDIR)/index.html
+
+uninstall:
+ rm -rf $(DESTDIR)/*
+
$(XSLROOT)/%.xsl : $(XSLROOT)/common.xsl