File: rules

package info (click to toggle)
dose3 5.0.1-8+deb9u1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 2,720 kB
  • ctags: 3,529
  • sloc: ml: 16,272; python: 467; ansic: 433; makefile: 392; sh: 167; perl: 101
file content (67 lines) | stat: -rwxr-xr-x 1,624 bytes parent folder | download | duplicates (5)
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
#!/usr/bin/make -f

RELEASE = $(shell dpkg-parsechangelog | grep ^Version: | cut -f 2 -d' ')
BUILDDIR= debian/tmp

%:
	dh $@ --with ocaml --with autoreconf

override_dh_auto_clean:
	! [ -f Makefile.config ] || make distclean

configure-stamp:
	dh_auto_configure -- --with-ocamlgraph --with-zip \
			--with-bz2 --with-rpm4 \
			--bindir=/usr/bin --libdir=/usr/lib
	touch configure-stamp

override_dh_auto_build:
	# do nothing

build-arch: build-stamp-arch

build-stamp-arch: configure-stamp
	$(MAKE)
	pod2man --section 8 -release "apt-cudf $(RELEASE)" \
		debian/update-cudf-solvers > debian/update-cudf-solvers.8
	touch build-stamp-arch

build-indep: configure-stamp
	$(MAKE) doc

override_dh_auto_install:
	# do nothing

override_dh_install-arch:
	$(MAKE) install DESTDIR=$(CURDIR)/$(BUILDDIR)
	cd debian/tmp/usr/bin \
		&& mv distcheck dose-distcheck \
		&& mv deb-buildcheck dose-builddebcheck \
		&& mv outdated dose-outdated \
		&& mv challenged dose-challenged \
		&& mv ceve dose-ceve \
		&& mv deb-coinstall dose-deb-coinstall
	dh_install -a
	dh_installman -a
	dh_installdocs -a

override_dh_install-indep:
	dh_installdocs -i

override_dh_installman:
	dh_installman
	if cd debian/dose-distcheck/usr/share/man/man1; \
		then mv distcheck.1 dose-distcheck.1; \
	fi
	if cd debian/dose-extra/usr/share/man/man1; \
		then mv outdated.1 dose-outdated.1; \
			mv challenged.1 dose-challenged.1; \
			mv ceve.1 dose-ceve.1; \
			mv debcoinstall.1 dose-deb-coinstall.1; \
	fi
	if cd 	debian/dose-builddebcheck/usr/share/man/man1; \
		then mv deb-buildcheck.1 dose-builddebcheck.1; \
	fi

override_dh_auto_test:
	# do nothing