2
# This debian/rules file is provided as a template for normal perl
3
# packages. It was created by Marc Brockschmidt <marc@dch-faq.de> for
4
# the Debian Perl Group (http://pkg-perl.alioth.debian.org/) but may
5
# be used freely wherever it is useful.
7
# Uncomment this to turn on verbose mode.
10
include /usr/share/quilt/quilt.make
12
# If set to a true value then MakeMaker's prompt function will
13
# always return the default without waiting for user input.
14
export PERL_MM_USE_DEFAULT=1
17
3
PACKAGE = $(shell dh_listpackages)
18
4
TMP = $(CURDIR)/debian/$(PACKAGE)
20
# Allow disabling build optimisation by setting noopt in
23
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
30
build-stamp: $(QUILT_STAMPFN)
32
$(PERL) Makefile.PL INSTALLDIRS=vendor
33
$(MAKE) OPTIMIZE="$(CFLAGS)" LD_RUN_PATH=""
34
#$(MAKE) test # requires access to a samba server
40
dh_clean build-stamp install-stamp
41
[ ! -f Makefile ] || ( touch Makefile && $(MAKE) realclean )
43
install: install-stamp
44
install-stamp: build-stamp
48
$(MAKE) install DESTDIR=$(TMP) PREFIX=/usr
49
[ ! -d $(TMP)/usr/share/perl5 ] || \
50
rmdir --ignore-fail-on-non-empty --parents --verbose \
51
$(TMP)/usr/share/perl5
54
# Build architecture-independent files here.
55
binary-indep: build install
56
# We have nothing to do here for an architecture-dependent package
58
# Build architecture-dependent files here.
59
binary-arch: build install
62
dh_installexamples t smb2www-2.cgi smb2www.css
63
chmod 0644 $(TMP)/usr/share/doc/$(PACKAGE)/examples/smb2www.css
65
dh_installchangelogs Changes
7
dh $@ --buildsystem=perl_makemaker
11
chmod 644 $(TMP)/usr/share/doc/libfilesys-smbclient-perl/examples/smb2www.css
76
binary: binary-indep binary-arch
77
.PHONY: build clean binary-indep binary-arch binary install