File: rules

package info (click to toggle)
libtk-gbarr-perl 2.08-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze, wheezy
  • size: 240 kB
  • ctags: 197
  • sloc: perl: 1,875; makefile: 26
file content (39 lines) | stat: -rwxr-xr-x 995 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
#!/usr/bin/make -f

PACKAGE=$(shell dh_listpackages)
TMP	=$(CURDIR)/debian/$(PACKAGE)

include /usr/share/quilt/quilt.make

build: build-stamp
build-stamp: $(QUILT_STAMPFN)
	dh build --before test
	# Use xvfp-run
	xvfb-run $(MAKE) test
	dh build --after test
	touch $@

clean: unpatch
	dh $@

install: install-stamp
install-stamp: build-stamp
	dh install --until dh_auto_install
	mkdir -p $(TMP)/usr/share/perl5
	mv $(TMP)/usr/lib/perl5/Tk $(TMP)/usr/share/perl5/Tk
	# make sure all demo programs are not executable ...
	chmod 0644 examples/*
	# ... and remove /usr/share/perl5/Tk/demos, we install them to examples/
	[ ! -d $(TMP)/usr/share/perl5/Tk/demos ] || rm -rvf $(TMP)/usr/share/perl5/Tk/demos
	[ ! -d $(TMP)/usr/lib/perl5 ] || rmdir --ignore-fail-on-non-empty --parents --verbose $(TMP)/usr/lib/perl5
	dh install --after dh_auto_install
	touch $@

binary-arch:

binary-indep: install
	dh $@

binary: binary-arch binary-indep

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