+# Note: "make FRAMES=x" works too
FRAMES = yes
#FRAMES = no
-#DESTDIR = /projects/mowgli/public_html/frames
-#DESTDIR = /projects/mowgli/public_html/no_frames
DESTDIR = /projects/mowgli/public_html
#DESTDIR = /tmp/mowgli
-#HTMLDESTDIRSUFFIX = html_frames
-#HTMLDESTDIRSUFFIX = html_no_frames
-HTMLDESTDIRSUFFIX = html
+HTMLDESTDIRSUFFIX = html_$(FRAMES)_frames
HTMLDESTDIR = $(DESTDIR)/$(HTMLDESTDIRSUFFIX)
$(XSLTP) --param today `date +%Y%m%d` -o approaching-deadlines.xml $(XSLROOT)/approaching-deadlines.xsl $(XMLROOT)/other-events.xml
$(XSLTP) --param make_header "false()" --param path_to_top "'.'" --param use_frames "'$(FRAMES)'" -o $@ $(XHTMLCONTENT) $(XMLROOT)/home.xml
-ifeq ($(FRAMES),yes)
menu.html: $(XMLROOT)/menu.xml
cp $< $@
index.html: $(TEMPLATESROOT)/index.html
cp $< $@
-else
-index.html: home.html
- cp $< $@
-#Same stuff as for home.html... but with a different path_to_top
-dot_dot_index.html: home.html
- $(XSLTP) --param make_header "false()" --param path_to_top "'html'" --param use_frames "'$(FRAMES)'" -o $@ $(XHTMLCONTENT) $(XMLROOT)/home.xml
-endif
members/ml-help-example.txt: $(TEMPLATESROOT)/ml-help-example.txt
cp $< $@
mkdir -p $(DESTDIR)/misc/contract
cp ../htaccess $(DESTDIR)/misc/contract/.htaccess
cp ../misc/contract/*.* $(DESTDIR)/misc/contract
- if [ -f dot_dot_index.html ] ; then cp dot_dot_index.html $(DESTDIR)/index.html ; else sed s/menu\\.html/$(HTMLDESTDIRSUFFIX)\\/menu\\.html/ <index.html | sed s/home\\.html/$(HTMLDESTDIRSUFFIX)\\/home\\.html/ >$(DESTDIR)/index.html ; fi
+ if [ $(FRAMES) = yes ] ; \
+ then \
+ sed s/menu\\.html/$(HTMLDESTDIRSUFFIX)\\/menu\\.html/ <index.html | \
+ sed s/home\\.html/$(HTMLDESTDIRSUFFIX)\\/home\\.html/ >$(DESTDIR)/index.html ; \
+ else \
+ cp home.html $(HTMLDESTDIR)/index.html ; \
+ fi
uninstall:
rm -rf $(DESTDIR)/*