File: rules

package info (click to toggle)
oauth-signpost 1.2.1.1-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 500 kB
  • ctags: 528
  • sloc: java: 2,783; xml: 227; makefile: 23
file content (40 lines) | stat: -rwxr-xr-x 881 bytes parent folder | download | duplicates (3)
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
40
#!/usr/bin/make -f
# -*- makefile -*-

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

UPVER=$(shell dpkg-parsechangelog | grep ^Version | cut -d' ' -f2 | cut -d- -f1)

SKIPTEST=false
ifneq ($(filter nocheck,$(DEB_BUILD_OPTIONS)),)
	SKIPTEST=true
endif

%:
	dh $@


override_dh_auto_build:
	mh_patchpoms -pliboauth-signpost-java
	mvn-debian -Dmaven.test.skip=$(SKIPTEST) package


override_dh_auto_install:
	dh_auto_install

	mh_installpoms -pliboauth-signpost-java -e$(UPVER)

	for dir in signpost-commonshttp4 signpost-core signpost-jetty6; do \
		mh_installjar -pliboauth-signpost-java -l $$dir/pom.xml -i$(UPVER) -e$(UPVER) \
		  $$dir/target/$$dir-debian.jar ; \
	done


override_dh_auto_clean:
	dh_auto_clean
	mh_unpatchpoms -pliboauth-signpost-java
	mh_clean

	-rm -rf target/ signpost-core/target/ signpost-commonshttp4/target/ \
	  signpost-jetty6/target/