Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2
3 # include for OCAMLBUILD_BEST
4 include /usr/share/ocaml/ocamlvars.mk
5
6 %:
7 dh $@ --with python3,ocaml
8
9 # only build the wiki in the indep target if no nodoc
10 override_dh_auto_build-indep:
11 ifeq ($(filter nodoc,$(DEB_BUILD_OPTIONS))$(filter nodoc,$(DEB_BUILD_PROFILES)),)
12 $(MAKE) wiki
13 endif
14
15 # build everything else in the arch target
16 override_dh_auto_build-arch:
17 $(MAKE) $(OCAMLBUILD_BEST) man
18
19 # don't run tests in the indep target
20 override_dh_auto_test-indep:
21
22 # only run tests in the arch target if no nocheck
23 override_dh_auto_test-arch:
24 ifeq ($(filter nocheck,$(DEB_BUILD_OPTIONS))$(filter nocheck,$(DEB_BUILD_PROFILES)),)
25 $(MAKE) test
26 endif
27
28 # only install the wiki in the indep target if no nodoc
29 override_dh_auto_install-indep:
30 ifeq ($(filter nodoc,$(DEB_BUILD_OPTIONS))$(filter nodoc,$(DEB_BUILD_PROFILES)),)
31 $(MAKE) DESTDIR="$(CURDIR)/debian/tmp" install-wiki
32 else
33 # at least create the target directory so that dh_install doesn't barf later
34 mkdir -p "$(CURDIR)/debian/tmp/usr/share/doc/botch"
35 endif
36
37 # install everything else in the arch target
38 override_dh_auto_install-arch:
39 $(MAKE) DESTDIR="$(CURDIR)/debian/tmp" install-bin install-man