File: rules

package info (click to toggle)
ott 0.34%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 6,440 kB
  • sloc: ml: 25,103; makefile: 1,374; awk: 736; lisp: 183; sh: 14; sed: 4
file content (28 lines) | stat: -rwxr-xr-x 711 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
#!/usr/bin/make -f

include /usr/share/ocaml/ocamlvars.mk

%:
	dh $@ --with coq,ocaml

override_dh_auto_clean:
	cp src/version.ml src/version.ml.bak
	make clean
	make -C doc clean
	mv src/version.ml.bak src/version.ml
	rm -f src/.depend src/version.tex coq/.lia.cache coq/.Makefile.coq.d
	rm -f doc/README.* doc/test10.despaced.v doc/test10.lem
	find . -name "*.vo*" -delete
	find . -name "*.aux" -delete
	find . -name "Makefile.coq*" -delete
	find . -name "*.glob" -delete

override_dh_auto_build:
	make -C coq
	make -C src
	make -C doc top2.html
	help2man -N src/ott > debian/ott.1

override_dh_auto_install:
	DESTDIR=$(CURDIR)/debian/tmp make -C coq install
	DESTDIR=$(CURDIR)/debian/tmp make -C src install