File: rules

package info (click to toggle)
libapache-mod-jk 1%3A1.2.46-1%2Bdeb10u1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 16,792 kB
  • sloc: ansic: 98,607; xml: 14,925; sh: 9,989; cpp: 4,222; java: 1,921; perl: 1,256; makefile: 821; pascal: 617; awk: 59
file content (32 lines) | stat: -rwxr-xr-x 1,074 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
#!/usr/bin/make -f

# Enable LFS, build system doesn't respect CPPFLAGS.
export DEB_CFLAGS_MAINT_APPEND = -D_LARGEFILE_SUPPORT -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 $(shell dpkg-buildflags --get CPPFLAGS)

%:
	dh $@ --with apache2 --sourcedirectory=native

override_dh_auto_configure:
	dh_auto_configure -- --with-apxs=/usr/bin/apxs2

override_dh_auto_install:
ifneq (,$(filter libapache-mod-jk-doc, $(shell dh_listpackages)))
	cd xdocs && install -d ../build/docs/ && cp -R * ../build/docs/
	cd build/docs && for i in `find . -name '*.xml'`; do xsltproc style.xsl $$i > `dirname $$i`/`basename $$i .xml`.html; done
	cd build/docs && find . -name '*.xml' -exec rm -f {} \;
	cd build/docs && rm -f style.xsl BUILDING
	cd build/docs/miscellaneous && lynx -dump -nolist changelog.html > ../changelog
endif

override_dh_compress:
	dh_compress -Xchangelog.html

# No check target
override_dh_auto_test:

override_dh_install:
	mv $(CURDIR)/conf/httpd-jk.conf $(CURDIR)/conf/jk.conf
	dh_install

get-orig-source:
	uscan --verbose --download-current-version --force-download