File: Makefile

package info (click to toggle)
opam 2.5.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 7,500 kB
  • sloc: ml: 61,414; sh: 2,963; ansic: 1,147; makefile: 479; sed: 6; csh: 1
file content (18 lines) | stat: -rw-r--r-- 566 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
DEPS = core format repository

INCLUDE = $(patsubst %,-I ../src/%,$(DEPS)) -I ../src/tools

LIBS = $(patsubst %,../src/opam-%.cma,$(DEPS))

%: %.ml
	sed 's/^#.*//' $< >$*-tmp.ml
	ocamlfind ocamlc -package unix,re.glob,ocamlgraph -linkpkg $(INCLUDE) $(LIBS) ../src/tools/opam_admin_top.ml $*-tmp.ml -o $@
	rm $*-tmp.ml

1_2_to_2_0: compilers-to-packages
	cp $< $@

couverture: couverture.ml
	sed 's/^#.*//' $< >couverture-tmp.ml
	ocamlfind ocamlopt -package re.glob,opam-lib.state -linkpkg ../src/tools/opam_admin_top.ml couverture-tmp.ml -o $@
	rm couverture-tmp.ml