Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2
3 # Uncomment this to turn on verbose mode.
4 #export DH_VERBOSE=1
5
6 PACKAGE=$(shell dh_listpackages)
7
8 ifndef PERL
9 PERL = /usr/bin/perl
10 endif
11
12 TMP =$(CURDIR)/debian/$(PACKAGE)
13
14 %:
15 dh $@
16
17 override_dh_auto_build:
18 $(PERL) Makefile.PL INSTALLDIRS=vendor
19 dh_auto_build -- OPTIMIZE="-Wall -O2 -g"
20
21 execute_after_dh_auto_clean:
22 [ ! -f Makefile ] || $(MAKE) realclean
23
24 execute_after_dh_auto_install:
25 # As this is a architecture independent package, we are not
26 # supposed to install stuff to /usr/lib. MakeMaker creates
27 # the dirs, we delete them from the deb:
28 [ ! -d $(TMP)/usr/lib/perl5 ] || rmdir --ignore-fail-on-non-empty --parents --verbose $(TMP)/usr/lib/perl5