File: rules

package info (click to toggle)
mkgmap-splitter 0.0.0+svn598-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 1,276 kB
  • sloc: java: 13,160; xml: 1,674; sh: 21; makefile: 17
file content (29 lines) | stat: -rwxr-xr-x 656 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
#!/usr/bin/make -f

JAVA_HOME=/usr/lib/jvm/default-java

include /usr/share/dpkg/pkg-info.mk

BUILD_DATE=$(shell LC_ALL=C date -u "+%d %B %Y" -d "@$(SOURCE_DATE_EPOCH)")

MANPAGES:=$(wildcard debian/man/*.*.xml)

%:
	dh $@ --with javahelper

override_dh_clean:
	dh_clean debian/man/*.1

override_dh_auto_build:
	# Create man pages from DocBook XML
	for x in $(MANPAGES) ; do \
	  docbook2x-man --string-param header-3="$(BUILD_DATE)" $$x ; \
	  mv `basename $$x | sed 's/.xml$$//'` `dirname $$x` ; \
	done

	dh_auto_build

override_dh_auto_install:
	dh_auto_install

	install -m 755 debian/mkgmap-splitter.sh debian/mkgmap-splitter/usr/bin/mkgmap-splitter