File: rules

package info (click to toggle)
scalapack-doc 1.5-11
  • links: PTS
  • area: main
  • in suites: bullseye, buster, sid, stretch
  • size: 10,336 kB
  • ctags: 4,931
  • sloc: makefile: 47; sh: 18
file content (68 lines) | stat: -rwxr-xr-x 1,644 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
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
68
#! /usr/bin/make -f
# Made with the aid of debmake, by Christoph Lameter,
# based on the sample debian/rules file for GNU hello by Ian Jackson.
# Handmodified by P. Frauenfelder for debhelper support, 5 Sept 1998

d=debian/scalapack-doc

# export DH_VERBOSE=1

build: build-arch build-indep
build-arch:
build-indep: build-stamp

build-stamp:
	dh_testdir
	touch build-stamp

clean:
	dh_testdir
	dh_testroot
	rm -f build-stamp
	dh_clean

binary-indep: build
	dh_testdir
	dh_testroot
	dh_prep
	dh_installdirs

	install -m 644 pblasqref.ps scalapackqref.ps \
	  `pwd`/$(d)/usr/share/doc/scalapack-doc
	install -m 644 html/faq.html \
	  `pwd`/$(d)/usr/share/doc/scalapack-doc/html
	install -m 644 html/slug/* \
	  `pwd`/$(d)/usr/share/doc/scalapack-doc/html/slug
	install -m 644 debian/scalapack-faq `pwd`/$(d)/usr/share/doc-base/
	install -m 644 debian/scalapack-pblasqref \
	  `pwd`/$(d)/usr/share/doc-base/
	install -m 644 debian/scalapack-scalapackqref \
	  `pwd`/$(d)/usr/share/doc-base/
	install -m 644 debian/scalapack-slug `pwd`/$(d)/usr/share/doc-base/

	dh_installdocs

# rename man pages and fix apropos description
# copy and paste from lapack-doc_2.0.1-3.2's rules file
	(cd man/manl; ls -1 *) | ( \
	  echo 's=man/manl; d=$(d)/usr/share/man/man3'; \
	  sed -e 's,\(.*\)\.l$$,sed -f debian/sed $$s/\1.l > $$d/\1.3,' \
	) | sh

	dh_installman
	dh_installchangelogs
	dh_compress
	dh_fixperms
	dh_installdeb
	dh_gencontrol
	dh_md5sums
	dh_builddeb

binary-arch: build

source diff:
	@echo >&2 'source and diff are obsolete - use dpkg-source -b'; false

binary: binary-indep binary-arch

.PHONY: binary binary-arch binary-indep clean build