Commit 7b94686c authored by Pietro Abate's avatar Pietro Abate

[r2003-10-24 09:06:28 by szach] added targets: "debug" (to run ocamldebug with needed options) and

".ocamlinit" (to create a .ocamlinit that permit to use interactively
the ocaml toplevel to debug some schema stuff)

Original author: szach
Date: 2003-10-24 09:06:28+00:00
parent b0c27f68
......@@ -38,6 +38,12 @@ install_web_distant:
$(MAKE) webpages
scp CHANGES web/www/*.html web/cduce.css cduce@iris:public_html/
SCRIPT =
INCLUDES += $(shell ocamlfind query -i-format -recursive $(PACKAGES))
DEBUGGER = ocamldebug
debug:
ledit $(DEBUGGER) $(INCLUDES) ./cduce $(SCRIPT)
# Packaging
DISTRIB = $(DIRS) cduce.spec expat tools web depend INSTALL INSTALL.WIN32 CHANGES LICENSE README Makefile.conf doc
......@@ -55,6 +61,27 @@ package: clean
tar czf $(PACKAGE).tar.gz --exclude CVS --exclude ".#*" $(PACKAGE)
rm -Rf $(PACKAGE)
.PHONY: .ocamlinit
.ocamlinit:
echo '(* AUTOMATICALLY GENERATED by Makefile: DO NOT EDIT! *)' > $@
echo '#load "/usr/lib/ocaml/3.07/pcre/pcre.cma";;' >> $@
echo '#load "/usr/lib/ocaml/3.07/unix.cma";;' >> $@
echo '#load "/usr/lib/ocaml/3.07/netstring/netstring.cma";;' >> $@
# echo '#load "/usr/lib/ocaml/3.07/netstring/netstring_top.cmo";;' >> $@
echo '#load "/usr/lib/ocaml/3.07/pxp-engine/pxp_engine.cma";;' >> $@
# echo '#load "/usr/lib/ocaml/3.07/pxp-engine/pxp_top.cmo";;' *)' >> $@
echo '#load "/usr/lib/ocaml/3.07/pxp-lex-iso88591/pxp_lex_iso88591.cma";;' >> $@
echo '#load "/usr/lib/ocaml/3.07/pxp-lex-iso88591/pxp_lex_link_iso88591.cmo";;' >> $@
echo '#load "/usr/lib/ocaml/3.07/ulex/ulexing.cma";;' >> $@
echo '#load "/usr/lib/ocaml/3.07/nums.cma";;' >> $@
# echo '#load "/usr/lib/ocaml/3.07/num_top.cma";;' >> $@
echo '#load "/usr/lib/ocaml/3.07/cgi/cgi.cma";;' >> $@
for o in $(VALIDATE_OBJECTS); do echo "prerr_endline \"Loading $$o ...\";;" >> $@; echo "#load \"$$o\";;" >> $@; done
for d in $(DIRS); do echo "#directory \"$$d\";;" >> $@; done
for p in pcre netstring pxp-engine ulex cgi; do echo "#directory \"`$(OCAMLFIND) query $$p`\";;" >> $@; done
echo "prerr_endline \"All done!\"" >> $@
echo '(* vim: set ft=ocaml: *)' >> $@
CVS_DISTRIB = web CHANGES LICENSE README doc cduce dtd2cduce
cvs_snapshot: clean
if [[ `uname` != Linux ]]; then echo "Not a Linux box!"; exit 2; fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment