File: rules

package info (click to toggle)
ocamlviz 1.01-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 1,156 kB
  • sloc: ml: 5,734; makefile: 200
file content (48 lines) | stat: -rwxr-xr-x 1,197 bytes parent folder | download
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
39
40
41
42
43
44
45
46
47
48
#!/usr/bin/make -f
# -*- makefile -*-

include /usr/share/ocaml/ocamlvars.mk

OVLIBDIR=$(CURDIR)/debian/libocamlviz-ocaml-dev$(OCAML_STDLIB_DIR)/ocamlviz
OVBINDIR=$(CURDIR)/debian/ocamlviz/usr/bin
OVVER=$(shell grep ^VERSION Makefile.in | sed "s/VERSION=//")

export OCAMLINIT_SED = -e 's/@OVVER@/$(OVVER)/g'

override_dh_auto_test:

override_dh_auto_configure:
	autoreconf
	./configure --prefix=$(CURDIR)/debian/tmp/usr

override_dh_auto_clean:
	[ ! -f Makefile ] || $(MAKE) clean

override_dh_auto_build:
	$(MAKE)

override_dh_auto_install:
ifneq (,$(findstring libocamlviz-ocaml-doc,$(shell dh_listpackages)))
	$(MAKE) doc/manual.pdf
	cd doc && pdflatex manual.tex
	cd doc && pdflatex manual.tex
endif
	mkdir -p $(OVBINDIR)
	mkdir -p $(OVLIBDIR)/camlp4
	$(MAKE) OCAMLLIB=$(OVLIBDIR) BINDIR=$(OVBINDIR) install
	cp debian/META $(OVLIBDIR)
	for file in monitor_sig protocol ocamlviz_threads; do \
		cp src/$${file}.cmi src/$${file}.mli $(OVLIBDIR)/; \
	done
	cp camlp4/pa_ocamlviz.ml $(OVLIBDIR)/camlp4

override_dh_compress:
	dh_compress -X.pdf

override_dh_ocaml:
	dh_ocaml --nodefined-map libocamlviz-ocaml-dev:Mutex,Condition,ThreadUnix,Thread,Event

%:
	dh $@ --with ocaml

override_dh_dwz: