File: rules

package info (click to toggle)
botch 0.22-5
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 1,148,688 kB
  • sloc: xml: 11,924,932; ml: 4,502; python: 3,899; sh: 1,272; makefile: 334
file content (39 lines) | stat: -rwxr-xr-x 1,172 bytes parent folder | download | duplicates (3)
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
#!/usr/bin/make -f

# include for OCAMLBUILD_BEST
include /usr/share/ocaml/ocamlvars.mk

%:
	dh $@ --with python3,ocaml

# only build the wiki in the indep target if no nodoc
override_dh_auto_build-indep:
ifeq ($(filter nodoc,$(DEB_BUILD_OPTIONS))$(filter nodoc,$(DEB_BUILD_PROFILES)),)
	$(MAKE) wiki
endif

# build everything else in the arch target
override_dh_auto_build-arch:
	$(MAKE) $(OCAMLBUILD_BEST) man

# don't run tests in the indep target
override_dh_auto_test-indep:

# only run tests in the arch target if no nocheck
override_dh_auto_test-arch:
ifeq ($(filter nocheck,$(DEB_BUILD_OPTIONS))$(filter nocheck,$(DEB_BUILD_PROFILES)),)
	$(MAKE) test
endif

# only install the wiki in the indep target if no nodoc
override_dh_auto_install-indep:
ifeq ($(filter nodoc,$(DEB_BUILD_OPTIONS))$(filter nodoc,$(DEB_BUILD_PROFILES)),)
	$(MAKE) DESTDIR="$(CURDIR)/debian/tmp" install-wiki
else
	# at least create the target directory so that dh_install doesn't barf later
	mkdir -p "$(CURDIR)/debian/tmp/usr/share/doc/botch"
endif

# install everything else in the arch target
override_dh_auto_install-arch:
	$(MAKE) DESTDIR="$(CURDIR)/debian/tmp" install-bin install-man