File: rules.old

package info (click to toggle)
parmetis 4.0.3-5
  • links: PTS, VCS
  • area: non-free
  • in suites: bullseye, buster, sid
  • size: 25,384 kB
  • ctags: 3,256
  • sloc: ansic: 41,872; makefile: 298; sh: 190; perl: 25
file content (73 lines) | stat: -rw-r--r-- 2,224 bytes parent folder | download | duplicates (7)
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
69
70
71
72
73
#!/usr/bin/make -f
# based on the sample debian/rules file for GNU hello by Ian Jackson.

package=ParMetis
export DH_COMPAT=5
 
build:
	dh_testdir
	$(MAKE)
	touch $@

clean:
	dh_testdir
	$(MAKE) clean
	rm -f build
	dh_clean

binary-indep:
	dh_testdir -i
	dh_testroot -i
	dh_installdirs -i
	# Overrides file
	install -d debian/parmetis-doc/usr/share/lintian/overrides
	install -m 644 debian/parmetis-doc.overrides debian/parmetis-doc/usr/share/lintian/overrides/parmetis-doc
	dh_installdocs -i
	dh_installexamples -i
	dh_installchangelogs -i
	dh_compress -i
	dh_fixperms -i
	dh_installdeb -i
	dh_gencontrol -i
	dh_md5sums -i
	dh_builddeb -i

binary-arch:
	dh_testdir -a
	dh_testroot -a
	dh_installdirs -a
	# I figure manual installation is simple enough with such small pkgs.
	install -d debian/libparmetis-dev/usr/lib
	install *.a debian/libparmetis-dev/usr/lib
	ln -s libmetis.so.3.1 debian/libparmetis-dev/usr/lib/libmetis.so
	ln -s libparmetis.so.3.1 debian/libparmetis-dev/usr/lib/libparmetis.so
	install -d debian/libparmetis-dev/usr/include
	install *.h debian/libparmetis-dev/usr/include
	chmod 644 debian/libparmetis-dev/usr/include/*.h
	install -d debian/libparmetis3.1/usr/lib
	cp -p *.so.* debian/libparmetis3.1/usr/lib
	install -d debian/parmetis-test/usr/bin
	install Graphs/ptest Graphs/mtest debian/parmetis-test/usr/bin
	# Overrides files
	install -d debian/libparmetis-dev/usr/share/lintian/overrides
	install -m 644 debian/libparmetis-dev.overrides debian/libparmetis-dev/usr/share/lintian/overrides/libparmetis-dev
	install -d debian/libparmetis3.1/usr/share/lintian/overrides
	install -m 644 debian/libparmetis3.1.overrides debian/libparmetis3.1/usr/share/lintian/overrides/libparmetis3.1
	install -d debian/parmetis-test/usr/share/lintian/overrides
	install -m 644 debian/parmetis-test.overrides debian/parmetis-test/usr/share/lintian/overrides/parmetis-test
	dh_installdocs -a
	dh_installman -pparmetis-test debian/mtest.1 debian/ptest.1
	dh_installchangelogs -a
	dh_strip -a
	dh_makeshlibs -a
	dh_compress -a
	dh_fixperms -a
	dh_installdeb -a
	dh_shlibdeps -a
	dh_gencontrol -a
	dh_md5sums -a
	dh_builddeb -a

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