File: rules

package info (click to toggle)
libapache2-reload-perl 0.13-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 208 kB
  • sloc: perl: 339; makefile: 19; sh: 5
file content (25 lines) | stat: -rwxr-xr-x 523 bytes parent folder | download | duplicates (4)
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
#!/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)
	rm -rf $(CURDIR)/t/logs

override_dh_auto_test:
	mkdir -p $(BUILDHOME)
	mkdir -p $(CURDIR)/t/logs
	APACHE_TEST_EXTRA_ARGS="-httpd_conf $(CURDIR)/debian/apache2.conf" \
		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