File: rules

package info (click to toggle)
logback 1:0.9.18+dak1-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 10,912 kB
  • ctags: 7,792
  • sloc: java: 39,286; xml: 3,628; sql: 354; sh: 113; makefile: 17
file content (28 lines) | stat: -rwxr-xr-x 1,000 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
#!/usr/bin/make -f

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

JAVA_HOME            := /usr/lib/jvm/default-java/
ANT_HOME             := /usr/share/ant

# janino glassfish-mail = core module
# slf4j-api glassfish-javaee = classic module
DEB_JARS             := janino glassfish-mail slf4j-api glassfish-javaee

DEB_ANT_BUILD_TARGET := jar.all javadoc
DEB_ANT_CLEAN_TARGET := clean
DEB_ANT_BUILDFILE    := debian/build.xml
DEB_ANT_ARGS         := -Ddeb.package=$(DEB_SOURCE_PACKAGE) -Ddeb.version=$(DEB_UPSTREAM_VERSION)

binary-post-install/liblogback-java::
	mh_installpoms -pliblogback-java
	mh_installjar -pliblogback-java -l logback-core/pom.xml dist/$(DEB_SOURCE_PACKAGE)-$(DEB_UPSTREAM_VERSION)-core.jar
	mh_installjar -pliblogback-java -l logback-classic/pom.xml dist/$(DEB_SOURCE_PACKAGE)-$(DEB_UPSTREAM_VERSION)-classic.jar

clean::
	-rm -rf debian/tmp

get-orig-source:
	uscan --download-version $(DEB_UPSTREAM_VERSION) --force-download --rename