File: Makefile

package info (click to toggle)
ocaml-getopt 0.0.20040811-6
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 72 kB
  • ctags: 39
  • sloc: ml: 116; makefile: 76
file content (38 lines) | stat: -rw-r--r-- 789 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
all: doc getopt.cmi getopt.cma
allopt: doc getopt.cmi getopt.cma getopt.cmxa

getopt.cmo: getopt.cmi getopt.ml
	ocamlc -c getopt.ml

getopt.cmi: getopt.mli
	ocamlc -c getopt.mli

getopt.cma: getopt.cmo
	ocamlc -o getopt.cma -a getopt.cmo

getopt.cmxa: getopt.cmx
	ocamlopt -o getopt.cmxa -a getopt.cmx

getopt.cmx: getopt.cmi getopt.ml
	ocamlopt -c getopt.ml

sample.cmo: getopt.cmi sample.ml
	ocamlc -c sample.ml

sample: getopt.cma sample.cmo
	ocamlc -o sample unix.cma getopt.cma sample.cmo

install:
	ocamlfind install getopt META getopt.cmi getopt.cma $(wildcard getopt.cmxa) $(wildcard getopt.o) $(wildcard getopt.a)

uninstall:
	ocamlfind remove getopt

.PHONY: doc
doc:
	mkdir -p doc
	ocamldoc -d doc -html getopt.mli

clean:
	rm -f *.cm[ioxa] *.cmxa *.a *.o sample *~
	rm -Rf doc