File: Makefile

package info (click to toggle)
findlib 1.2.5%2Bdebian-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 1,496 kB
  • ctags: 678
  • sloc: ml: 4,661; xml: 2,445; sh: 1,322; makefile: 306
file content (37 lines) | stat: -rw-r--r-- 1,136 bytes parent folder | download | duplicates (10)
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
TOP=../..
include $(TOP)/Makefile.config

.PHONY: all opt install uninstall clean

all: make_wizard$(EXEC_SUFFIX)

opt:
	true

make_wizard$(EXEC_SUFFIX): make_wizard.ml
	ocamlc -o make_wizard$(EXEC_SUFFIX) -I +labltk -I ../findlib unix.cma str.cma labltk.cma \
	 	findlib.cma make_wizard.ml

install:
	cp make_wizard$(EXEC_SUFFIX) make_wizard.pattern $(prefix)$(OCAML_SITELIB)/findlib

# uninstall: Nothing to do, because the removal of the findlib core also
# deinstalls the make_wizard
uninstall:
	true

# ----------------------------------------------------------------------

tree: lx_spots.mli lx_spots.ml lx_tree.mli lx_tree.ml test_tree.ml
	ocamlfind ocamlc -o tree -package labltk,unix,str -linkpkg \
		lx_spots.mli lx_spots.ml lx_tree.mli lx_tree.ml test_tree.ml

tree_editor: lx_spots.mli lx_spots.ml lx_tree.mli lx_tree.ml tree_editor.ml
	ocamlfind ocamlc -o tree_editor -package labltk,unix,str -linkpkg \
		lx_spots.mli lx_spots.ml lx_tree.mli lx_tree.ml tree_editor.ml

# ----------------------------------------------------------------------

clean:
	rm -f *.cmi *.cmo
	rm -f make_wizard$(EXEC_SUFFIX) # tree tree_editor