File: rules

package info (click to toggle)
perlpanel 1%3A0.9.1%2Bcvs20051225-2.1
  • links: PTS
  • area: main
  • in suites: stretch
  • size: 1,628 kB
  • ctags: 547
  • sloc: perl: 7,376; sh: 140; makefile: 125
file content (64 lines) | stat: -rwxr-xr-x 1,490 bytes parent folder | download | duplicates (2)
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
#!/usr/bin/make -f

TMP=$(CURDIR)/debian/perlpanel

build: patch build-stamp
build-stamp:
	dh_testdir
	$(MAKE) PREFIX=/usr LIBDIR=/usr/share/perlpanel/
	touch build-stamp

clean: unpatch clean-unpatched
clean-unpatched:
	dh_testdir
	dh_testroot
	rm -f build-stamp install-stamp
	$(MAKE) clean
	dh_clean

install: install-stamp
install-stamp: build
	dh_testdir
	dh_testroot
	dh_clean -k
	$(MAKE) install DESTDIR=$(TMP) PREFIX=/usr LIBDIR=/usr/share/perlpanel/
	#Fix b0rken permissions in the upstream tarball:
	find $(TMP)/usr/share/icons/hicolor/48x48/ -name '*png' -exec chmod 644 \{\} \;
	find $(TMP)/usr/share/perlpanel/glade/ -type f -name '*glade' -exec chmod 644 \{\} \;
	find $(TMP)/usr/share/perlpanel/PerlPanel/Applet/ -name '*pm' -exec chmod 644 \{\} \;

	dh_install
	touch install-stamp

# Build architecture-independent files here.
binary-indep: build install
	dh_testdir
	dh_testroot
	dh_installdocs
	dh_installexamples
	dh_installmenu
	dh_installchangelogs
	dh_compress
	dh_fixperms
	dh_installdeb
	dh_shlibdeps
	dh_gencontrol
	dh_md5sums
	dh_builddeb

# Build architecture-dependent files here.
binary-arch: build install
# We have nothing to do by default.

patch: patch-stamp
patch-stamp:
	dpatch apply-all
	#dpatch call-all -a=pkg-info >patch-stamp #I don't understand this one.
	echo patched > patch-stamp

unpatch:
	dpatch deapply-all
	rm -rf patch-stamp debian/patched

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