| 1 |
#!/usr/bin/make -f |
| 2 |
# Sample debian/rules that uses debhelper. |
| 3 |
# GNU copyright 1997 to 1999 by Joey Hess. |
| 4 |
|
| 5 |
configure: Makefile |
| 6 |
Makefile: Makefile.PL |
| 7 |
dh_testdir |
| 8 |
perl Makefile.PL INSTALLDIRS=vendor |
| 9 |
|
| 10 |
build: build-arch build-indep |
| 11 |
build-arch: build-stamp |
| 12 |
build-indep: build-stamp |
| 13 |
|
| 14 |
build-stamp: configure |
| 15 |
dh_testdir |
| 16 |
$(MAKE) OPTIMIZE="-O2 -g -Wall" |
| 17 |
touch build-stamp |
| 18 |
|
| 19 |
clean: |
| 20 |
dh_testdir |
| 21 |
dh_testroot |
| 22 |
rm -f build-stamp |
| 23 |
[ ! -f Makefile ] || $(MAKE) distclean |
| 24 |
rm -f Makefile Makefile.old |
| 25 |
dh_clean |
| 26 |
|
| 27 |
# Build architecture-independent files here. |
| 28 |
binary-indep: build |
| 29 |
dh_testdir |
| 30 |
dh_testroot |
| 31 |
dh_clean |
| 32 |
dh_installdirs |
| 33 |
$(MAKE) test |
| 34 |
$(MAKE) install DESTDIR=$(CURDIR)/debian/libfile-slurp-perl/ |
| 35 |
dh_install |
| 36 |
dh_installdocs -n |
| 37 |
dh_installexamples |
| 38 |
dh_installchangelogs |
| 39 |
dh_compress |
| 40 |
dh_fixperms |
| 41 |
dh_installdeb |
| 42 |
dh_perl |
| 43 |
dh_gencontrol |
| 44 |
dh_md5sums |
| 45 |
dh_builddeb |
| 46 |
|
| 47 |
# Build architecture-dependent files here. |
| 48 |
binary-arch: build |
| 49 |
|
| 50 |
binary: binary-indep binary-arch |
| 51 |
.PHONY: build clean binary-indep binary-arch binary configure |