Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2
3 include /usr/share/ocaml/ocamlvars.mk
4 include /usr/share/dpkg/pkg-info.mk
5 export DEB_VERSION_UPSTREAM
6 export OCAMLBUILD_BEST
7
8 MAN_NAME_SECTION="Tool merging math and logic for executable definitions"
9
10 %:
11 dh $@ --with ocaml
12
13 override_dh_auto_build:
14 $(MAKE)
15
16 # Some files generated from the lem library, so they don't have .mli files and
17 # if for documentation purposes it's better to refer to the .lem source files.
18 # The $(cp) will copy these files which already available .mli file, but this should
19 # be harmless. See README.Debian and https://github.com/rems-project/lem/issues/34
20 execute_after_dh_auto_install:
21 cp $(CURDIR)/ocaml-lib/_build_num/*.ml $(CURDIR)/debian/tmp/lem_num/
22 cp $(CURDIR)/ocaml-lib/_build_zarith/*.ml $(CURDIR)/debian/tmp/lem_zarith/
23 help2man $(CURDIR)/debian/tmp/bin/lem --name=$(MAN_NAME_SECTION) --version-string=$(DEB_VERSION_UPSTREAM) > debian/lem.1
24
25 override_dh_auto_clean:
26 rm -rf bin/lem
27 rm -rf lem
28 rm -rf src/main.native
29 rm -rf src/_build
30 rm -rf src/version.ml
31 rm -rf src/share_directory.ml
32 rm -rf coq-lib/lem_*.v
33 rm -rf library/ocaml-build-dir*
34 rm -rf ocaml-lib/lem_*.ml
35 rm -rf ocaml-lib/_build_num
36 rm -rf ocaml-lib/_build_zarith
37 rm -rf hol-lib/lemTheory.sml
38 rm -rf hol-lib/lem_*.sml
39 rm -rf html-lib/*.html
40 rm -rf isabelle-lib/Lem_*.thy
41 rm -rf tex-lib/lem-libs*.tex
42 dh_clean