Commits

Guillaume Hennequin committed 02445fb

now compiling with ocamlbuild

  • Participants
  • Parent commits 57b1067

Comments (0)

Files changed (8)

File examples/Makefile

-
-
-ex: 
-	ocamlfind ocamlopt -linkpkg -package gp -o ex.exe ex.ml
-	rm -f *.cmi *.cmx *.o
-
-clean:
-	rm -f *.cmi *.cmx *.exe *.o

File examples/_tags

+true: package(gp)
 description = "Interfacing Gnuplot with OCaml"
 version = "1"
 requires="unix"
-archive(byte) = "gp.cma"
-archive(native) = "gp.cmxa"
+archive(byte) = "gp.cmo"
+archive(native) = "gp.cmx"

File src/Makefile

 CBYTE=ocamlfind ocamlc -package unix
 
 byte:
-	$(CBYTE) -c gp.mli gp.ml
-	$(CBYTE) -a -o gp.cma gp.cmo
+	ocamlbuild gp.cmo
 
 native:
-	$(CNATIVE) -c gp.mli gp.ml
-	$(CNATIVE) -a -o gp.cmxa gp.cmx
+	ocamlbuild gp.cmx
 
 install:
 	ocamlfind remove gp
-	ocamlfind install gp META gp.cmi gp.cma gp.cmxa gp.a
+	ocamlfind install gp META _build/gp.cmi \
+	_build/gp.cmo _build/gp.cmx _build/gp.o
 
 uninstall:
 	ocamlfind remove gp
 
 doc:
-	rm -rf ../doc_html
-	mkdir ../doc_html
-	ocamlfind ocamldoc -hide-warnings -dump docconfig gp.mli
-	ocamlfind ocamldoc -hide-warnings -html -colorize-code \
-		-css-style style.css -t "Gp: accessing Gnuplot from OCaml" \
-		-stars -d ../doc_html -load docconfig
-	cp style.css ../doc_html
+	ocamlbuild gp.docdir/index.html
 			
 clean:
-	rm -f docconfig gp.cma gp.cmxa gp.cmi gp.cmo gp.cmx gp.a gp.o
+	ocamlbuild -clean
 
-all: byte native doc install clean
+all: byte native doc install
+true: package(unix)
+true: debug

File src/gp.docdir

+/home/hennequi/code/gp/src/_build/gp.docdir

File src/gp.odocl

+Gp

File src/style.css

-a:visited { text-decoration : none; font-weight: bold}
-a:link { text-decoration : none; font-weight: bold}
-.keyword { color : Blue }
-.keywordsign { color : Red }
-.superscript { font-size : 4 }
-.subscript { font-size : 4 }
-.comment { color : Green }
-.constructor { color : Orange; }
-.type { color : Maroon } 
-.string { color : Green }
-.warning { color : Red }
-.info { border-left: solid 3px #555; padding-left: 1em; 
-	margin-left : 3em; margin-right : 3em; font-size: smaller; font-family: sans-serif; color: #555; }
-.param_info { margin-top: 4px; margin-left : 3em; margin-right : 3em }
-.code { color : black }
-
-h1 { font-size : 20pt ; text-align: center; background: black; color: white}
-h1 a {color: orange}
-h2 { font-size : larger; font-weight: bold; font-family: sans-serif; 
-     border: 1px solid #555; margin-top: 5px; margin-bottom: 2px; text-align: left; 
-     background-color: #333; color: white; padding: 0.5em; padding-left: 2em;}
-h3 { font-size : 20pt ; border: 1px solid #000000; margin-top: 5px; 
-     margin-bottom: 2px;text-align: center; background-color: #90DDFF ;padding: 2px; }
-h4 { font-size : 20pt ; border: 1px solid #000000; margin-top: 5px;
-     margin-bottom: 2px;text-align: center; background-color: #90EDFF ;padding: 2px; }
-h5 { font-size : 20pt ; border: 1px solid #000000; margin-top: 5px; 
-     margin-bottom: 2px;text-align: center; background-color: #90FDFF ;padding: 2px; }
-h6 { font-size : smaller; font-weight: normal; font-family: sans-serif; 
-     border: 1px solid #555; margin-top: 5px; margin-bottom: 2px; text-align: left; 
-     background-color: #EEE ; padding: 0.5em; padding-left: 2em;}
-div.h7 { font-size : 20pt ; border: 1px solid #000000; margin-top: 5px; 
-	 margin-bottom: 2px;text-align: center; background-color: #E0FFFF ; padding: 2px; }
-div.h8 { font-size : 20pt ; border: 1px solid #000000; margin-top: 5px; 
-	 margin-bottom: 2px;text-align: center; background-color: #F0FFFF ; padding: 2px; }
-div.h9 { font-size : 20pt ; border: 1px solid #000000; margin-top: 5px; 
-	 margin-bottom: 2px;text-align: center; background-color: #FFFFFF ; padding: 2px; }
-.typetable { border-style : hidden }
-.indextable { border-style : hidden }
-.paramstable { border-style : hidden ; padding-left: 5pt}
-body { background-color : #FFF }
-tr { background-color : #FFF }
-td.typefieldcomment { background-color : #FFF ; font-size: smaller ;}
-pre { margin-bottom: 4px }
-div.sig_block {margin-left: 2em}