File: rules

package info (click to toggle)
cernlib 20061220+dfsg3-4.4
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 7,872 kB
  • sloc: sh: 9,517; makefile: 187
file content (80 lines) | stat: -rwxr-xr-x 2,045 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
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
74
75
76
77
78
79
80
#!/usr/bin/make -f

MY_NAME = cernlib
MY_MODULES = Imakefile car cfortran config graflib include \
	     man mathlib p5boot packlib patchy scripts 

export DEB_BUILD_OPTIONS=nocheck

include debian/cernlib-debian.mk

binary-arch: install-arch
	dh_testdir
	dh_testroot
	dh_install -s
	# move a couple files around
	PL=debian/libpacklib1-gfortran/usr ; \
	mkdir -p $$PL/lib/$(DEB_HOST_MULTIARCH)/libpacklib1-gfortran/; \
	mv -f $$PL/bin/kuesvr \
		$$PL/lib/$(DEB_HOST_MULTIARCH)/libpacklib1-gfortran/ ; \
	mv -f $$PL/share/man/man1/kuesvr.1 $$PL/share/man/man7/kuesvr.7 ; \
	sed -i -e '/^\.TH/s/1/7/' $$PL/share/man/man7/kuesvr.7 ; \
	rmdir $$PL/bin $$PL/share/man/man1
	dh_installdocs -s
	dh_installexamples -s
	dh_installmenu -s
	dh_installman -s
	dh_installchangelogs -s
	dh_installdebconf -s
	dh_strip -s
	dh_link -s
	dh_lintian -s
	dh_compress -s
	dh_installcron -s
	dh_installlogrotate -s
	dh_fixperms -s
	for package in libgraflib1 libgrafx11-1 libkernlib1 \
		libmathlib2 libpacklib-lesstif1 libpacklib1 ; do \
		dh_makeshlibs -p$${package}-gfortran ; \
	done
	dh_shlibdeps -s -lshlib
	dh_installdeb -s
	dh_gencontrol -s
	dh_md5sums -s
	dh_builddeb -s

binary-indep: install-indep
	dh_testdir
	dh_testroot
	dh_install -i
	dh_installdocs -i
	dh_installexamples -i
	dh_installman -i
	dh_installchangelogs -i
	dh_link -i
	dh_lintian -i
	dh_compress -i -X.dat -X.kumac -X.F -X.sh

	# Fudge metapackage docs a little bit for efficiency:
	for package in cernlib cernlib-core cernlib-core-dev cernlib-extras \
		cernlib-base-dev ; do \
		rm -rf debian/$$package/usr/share/doc/$$package ; \
		ln -sf cernlib-base debian/$$package/usr/share/doc/$$package ; \
	done

	dh_fixperms -i
	chmod a+x debian/cernlib-base/usr/share/doc/cernlib-base/examples/*.sh
	chmod a+x debian/cernlib-base-dev/usr/share/cernlib/remove-deadpool
	dh_installdeb -i
	dh_gencontrol -i
	dh_md5sums -i
	dh_builddeb -i

binary: binary-indep binary-arch

clean: update-po
update-po:
	debconf-updatepo

.PHONY: install-arch-local binary binary-indep binary-arch clean update-po