2 # Made with the aid of dh_make, by Craig Small
3 # Sample debian/rules that uses debhelper. GNU copyright 1997 by Joey Hess.
4 # Some lines taken from debmake, by Cristoph Lameter.
6 # Uncomment this to turn on verbose mode.
13 TMP =$(CURDIR)/debian/libdevel-symdump-perl
14 config =INSTALLDIRS=vendor
16 ifeq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
17 CFLAGS := -O2 -g -Wall
25 $(PERL) Makefile.PL $(config)
26 $(MAKE) OPTIMIZE="$(CFLAGS)"
32 [ ! -f Makefile ] || $(MAKE) distclean
34 dh_clean build-stamp install-stamp
36 install: install-stamp
37 install-stamp: build-stamp
43 $(MAKE) install PREFIX=$(TMP)/usr
44 [ ! -d $(TMP)/usr/lib/perl5 ] || rmdir --ignore-fail-on-non-empty --parents $(TMP)/usr/lib/perl5
48 # Build architecture-independent files here.
49 binary-indep: build install
53 dh_installchangelogs ChangeLog
64 # Build architecture-dependent files here.
65 binary-arch: build install
66 # We have nothing to do by default.
68 binary: binary-indep binary-arch
69 .PHONY: build clean install binary-indep binary-arch binary