File: rules

package info (click to toggle)
libclass-dbi-mysql-perl 1.00-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 72 kB
  • ctags: 10
  • sloc: perl: 110; makefile: 23
file content (31 lines) | stat: -rwxr-xr-x 703 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
#!/usr/bin/make -f

build : build-stamp

build-stamp : Makefile.PL
	perl Makefile.PL INSTALLDIRS=vendor
	$(MAKE)
	@# Only run the unit tests if we have access to a local test database
	if mysql -h localhost test </dev/null &>/dev/null; then $(MAKE) test; fi
	touch build-stamp

binary : binary-arch binary-indep

binary-arch :

binary-indep : build-stamp
	dh_testroot
	$(MAKE) PREFIX=$(CURDIR)/debian/libclass-dbi-mysql-perl/usr install
	dh_perl
	dh_installchangelogs Changes
	dh_installdocs README
	dh_compress
	dh_fixperms
	dh_gencontrol
	dh_builddeb

clean : 
	if [ -f Makefile ]; then $(MAKE) clean; fi
	dh_clean Makefile Makefile.old build-stamp

.PHONY : build binary binary-arch binary-dep clean