File: rules

package info (click to toggle)
scalapack-doc 1.5-5
  • links: PTS
  • area: main
  • in suites: potato
  • size: 4,700 kB
  • ctags: 2
  • sloc: makefile: 37
file content (59 lines) | stat: -rwxr-xr-x 1,173 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
#! /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
export DH_COMPAT=2

build: build-stamp

build-stamp:
	dh_testdir
	touch build-stamp

clean:
	dh_testdir
	dh_testroot
	rm -f build-stamp
	dh_clean

binary-indep: build
	dh_testversion
	dh_testdir
	dh_testroot
	dh_clean -k
	dh_installdirs

	install pblasqref.ps  scalapackqref.ps \
	`pwd`/$(d)/usr/share/doc/scalapack-doc

	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_installmanpages

	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