File: rules

package info (click to toggle)
easyconf 0.9.5-3
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 580 kB
  • sloc: java: 3,400; xml: 984; makefile: 22; jsp: 16
file content (31 lines) | stat: -rwxr-xr-x 1,053 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
#!/usr/bin/make -f

include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/ant.mk

POM_VERSION          := 0.9.5
MAVEN_REPO           := http://repository.sonatype.org/service/local/repositories/central/content

JAVA_HOME := /usr/lib/jvm/default-java
DEB_JARS  := commons-collections3 commons-logging commons-lang commons-digester commons-configuration commons-beanutils \
             struts-1.2 servlet-api-2.5 jsp-api-2.1 xstream junit ant-junit
DEB_ANT_BUILD_TARGET := jar javadoc
DEB_ANT_CHECK_TARGET := internal-test

makebuilddir::
	-mkdir -p src/conf

clean::
	-rm -rf src/conf
	-rm debian/tmp

binary-post-install/libeasyconf-java::
	mh_installpoms -plibeasyconf-java
	mh_installjar -plibeasyconf-java -l debian/pom.xml target/easyconf-$(DEB_UPSTREAM_VERSION).jar

get-orig-source::
	uscan --force-download --rename

get-orig-pom:
	wget -O debian/pom.xml $(MAVEN_REPO)/easyconf/easyconf/$(POM_VERSION)/easyconf-$(POM_VERSION).pom
	perl -p -i -e 's/<version>$(POM_VERSION)/<version>$(DEB_UPSTREAM_VERSION)/' debian/pom.xml