File: rules

package info (click to toggle)
tomcat-maven-plugin 1.1-2
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 424 kB
  • sloc: java: 1,430; xml: 1,070; makefile: 21
file content (35 lines) | stat: -rwxr-xr-x 742 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
#!/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 -plibtomcat-maven-plugin-java
	mvn-debian -Dmaven.test.skip=$(SKIPTEST) package

override_dh_auto_install:
	dh_auto_install

	mh_installpoms -plibtomcat-maven-plugin-java -e$(UPVER)
	mh_installjar -plibtomcat-maven-plugin-java -l pom.xml \
		-j$(UPVER) -e$(UPVER) \
		target/tomcat-maven-plugin-$(UPVER).jar


override_dh_auto_clean:
	dh_auto_clean
	mh_unpatchpoms -plibtomcat-maven-plugin-java
	mh_clean

	-rm -rf target/