File: rules

package info (click to toggle)
plexus-classworlds2 2.5.2-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, stretch
  • size: 592 kB
  • ctags: 539
  • sloc: java: 3,858; xml: 209; makefile: 13
file content (19 lines) | stat: -rwxr-xr-x 797 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/make -f

DEB_SOURCE_PACKAGE   := $(shell dpkg-parsechangelog | grep '^Source:' | cut -f 2 -d ' ')
DEB_UPSTREAM_VERSION := $(shell dpkg-parsechangelog | egrep '^Version:' | cut -f 2 -d ' ' | cut -d: -f2- | sed 's/-[^-]*$$//')

export JAVA_HOME=/usr/lib/jvm/default-java
export CLASSPATH=$(shell for jar in `cat debian/build-classpath`; do if [ -f "$$jar" ]; then echo -n "$${jar}:"; fi; done)
export ANT_ARGS=-Dbasedir=$(realpath .) -Dpackage=$(DEB_SOURCE_PACKAGE) -f /usr/share/maven-ant-helper/maven-build.xml

%:
	dh $@ --buildsystem=ant --with maven_repo_helper

override_dh_auto_clean:
	mh_clean
	mh_unpatchpoms -plibplexus-classworlds2-java
	rm -Rf target debian/plexus-classworlds2-doc

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