PATH_TO_GENESIS=/Users/roland/WL/genesis/nodes PATH_TO_EXODUS=/Users/roland/WL/other/exodus-lv-imp/server PYTHON=python XMLLINT=xmllint XSLTPROC=xsltproc REQUIRES = str pxp threads OCAMLC = ocamlfind ocamlc -thread -w p -g -linkpkg -package "$(REQUIRES)" OCAMLOPT = ocamlfind ocamlopt -thread -w p -linkpkg -package "$(REQUIRES)" OCAMLDEP = ocamldep OCAMLFIND = ocamlfind all: update nodesxml .PHONY: html channelea: channelea.ml $(OCAMLOPT) -o channelea channelea.ml static: static.ml $(OCAMLOPT) -o static static.ml # fancy-schmancy print version of the code static.ps: static.ml cat docs/preamble.tex | sed "s/TITEL/channelea.ml/g" > temp.tex ocamlweb --no-preamble -s --no-index $< >> temp.tex echo "\end{document}" >> temp.tex cat temp.tex | perl docs/fixup.pl > $<.tex rm temp.tex latex $<.tex dvips -o $@ $<.dvi channelea.ps: channelea.ml cat docs/preamble.tex | sed "s/TITEL/channelea.ml/g" > temp.tex ocamlweb --no-preamble -s --no-index $< >> temp.tex echo "\end{document}" >> temp.tex cat temp.tex | perl docs/fixup.pl > $<.tex rm temp.tex latex $<.tex dvips -o $@ $<.dvi debug: $(OCAMLC) -o channelea.debug channelea.ml $(OCAMLC) -o static.debug static.ml nodesxml: echo "" > $(PATH_TO_EXODUS)/nodes.xml echo "" >> $(PATH_TO_EXODUS)/nodes.xml echo "" >> $(PATH_TO_EXODUS)/nodes.xml cat extra.snippet >> $(PATH_TO_EXODUS)/nodes.xml for i in `find -s $(PATH_TO_GENESIS) -name wleiden.xml | grep -v demo | grep -v test | grep -v vuilnis`; do \ cat $$i | sed "s/^/ /g" | grep -v "^ <[?!]" >> $(PATH_TO_EXODUS)/nodes.xml ; \ done echo "" >> $(PATH_TO_EXODUS)/nodes.xml html: nodes.xml nodes2xhtml.xsl $(XSLTPROC) nodes2xhtml.xsl $(PATH_TO_EXODUS)/nodes.xml update: sh $(PATH_TO_EXODUS)/update.sh dnsconfigs: $(PYTHON) $(PATH_TO_EXODUS)/gendnsconfigs.py $(PATH_TO_EXODUS)/nodes.xml nodesconfigs: $(PYTHON) $(PATH_TO_EXODUS)/gennodeconfigs.py $(PATH_TO_EXODUS)/nodes.xml allconfigs: nodesconfigs dnsconfigs clean: rm $(PATH_TO_EXODUS)/*.pyc rm $(PATH_TO_EXODUS)/*.pyo