File: rules

package info (click to toggle)
apgdiff 2.5.0~alpha.2-75-gcaaaed9-4
  • links: PTS, VCS
  • area: main
  • in suites: buster, sid
  • size: 2,104 kB
  • sloc: java: 8,324; sql: 4,670; xml: 432; makefile: 28; sh: 9
file content (37 lines) | stat: -rwxr-xr-x 907 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
34
35
36
37
#!/usr/bin/make -f

override_dh_auto_build:
	ant -Dnoget=1 jar
	
	# setting up test suite
	-mkdir lib
	cp /usr/share/java/junit4.jar lib/junit.jar
	cp -a /usr/share/java/hamcrest-* lib
	ant -Dnoget=1 compile-tests
	ant -Dnoget=1 test

override_dh_installman:
	echo '#!/bin/sh' > dist/apgdiff
	echo "java -jar dist/apgdiff-*.jar" >> dist/apgdiff
	chmod +x dist/apgdiff
	PATH=dist:$(PATH) \
	help2man --no-discard-stderr --no-info \
		--name "Another PostgreSQL Diff Tool" \
		--version-string=$(shell dpkg-parsechangelog | awk '/^Version:/ { print $$2 }') \
		--help-option=' ' \
		-- apgdiff > apgdiff.1
	dh_installman

override_dh_installchangelogs:
	dh_installchangelogs README.md

override_dh_auto_install:
	install -d debian/apgdiff/usr/bin
	sed -e 's/@JAR@/$(shell ls dist)/' debian/apgdiff.sh > debian/apgdiff/usr/bin/apgdiff

override_dh_auto_clean:
	dh_auto_clean
	rm -f debian/apgdiff.1

%:
	dh $@