File: rules

package info (click to toggle)
parser 3.5.1-2
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 7,444 kB
  • sloc: cpp: 35,352; sh: 15,643; ansic: 10,375; yacc: 1,378; makefile: 242
file content (39 lines) | stat: -rwxr-xr-x 1,004 bytes parent folder | download | duplicates (2)
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
34
35
36
37
38
39
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export DEB_CFLAGS_MAINT_APPEND=-D_LARGEFILE64_SOURCE

%:
	dh $@ --with apache2

override_dh_auto_configure:
	dh_auto_configure -- \
		--prefix=/usr \
		--sysconfdir=/etc/parser3 \
		--datarootdir=/usr/share/parser3 \
		--libdir=/usr/lib/parser3 \
		--includedir=/usr/include/parser3 \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--disable-safe-mode \
		--with-xml \
		--with-apache \
		--with-pic \
		--with-system-cfg=/etc/parser3/auto.p

override_dh_auto_test:
	./debian/tests/parse
	rm -f debian/examples/_test.*

override_dh_auto_install:
	dh_auto_install
	mkdir -p debian/tmp/etc/parser3/
	mkdir debian/tmp/etc/parser3/apache2 ; cp debian/tmp/etc/parser3/auto.p \
		debian/tmp/etc/parser3/apache2/auto.p
	rm debian/tmp/usr/lib/parser3/mod_parser3.la

override_dh_link:
	for package in parser3 parser3-cgi parser3-dev libapache2-mod-parser3; do \
	  rm -rf debian/$$package/usr/share/doc/$$package; \
	done
	dh_link