File: rules

package info (click to toggle)
libapache2-reload-perl 0.12-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 144 kB
  • sloc: perl: 327; makefile: 24
file content (33 lines) | stat: -rwxr-xr-x 662 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
32
33
#!/usr/bin/make -f

PKG  := $(shell dh_listpackages)
TMP  := $(CURDIR)/debian/$(PKG)
BUILDHOME := $(CURDIR)/debian/build

%:
	dh $@

override_dh_clean:
	dh_clean
	rm -rf $(BUILDHOME)

override_dh_auto_configure:
	APACHE_TEST_HTTPD=/usr/sbin/apache2 \
		APACHE_TEST_APXS=/usr/bin/apxs2 \
		APACHE_TEST_USER=www-data \
		dh_auto_configure

override_dh_auto_test:
	mkdir -p $(BUILDHOME)
	APACHE_TEST_HTTPD=/usr/sbin/apache2 \
		APACHE_TEST_APXS=/usr/bin/apxs2 \
		APACHE_TEST_USER=www-data \
		HOME=$(BUILDHOME) \
		dh_auto_test

override_dh_auto_install:
	dh_auto_install
	rm -rv $(TMP)/usr/share/perl5/Apache
	rm -v $(TMP)/usr/share/man/man3/Apache::Reload.3pm