File: rules

package info (click to toggle)
jcsp 1.1-rc4-2
  • links: PTS, VCS
  • area: main
  • in suites: buster, jessie, jessie-kfreebsd, stretch
  • size: 8,924 kB
  • ctags: 9,717
  • sloc: java: 56,095; xml: 499; cpp: 179; ansic: 86; makefile: 23; sh: 12
file content (30 lines) | stat: -rwxr-xr-x 713 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
#!/usr/bin/make -f

export JAVA_HOME=/usr/lib/jvm/default-java
UPSTREAM_VERSION := $(shell dpkg-parsechangelog  | sed -n '/^Version:/s/^[^:]*: \(.*\)-.*$$/\1/p')

%:
	dh --with javahelper $@

override_dh_auto_clean:
	dh_auto_clean
	-rm -rf dist
	mh_clean

override_dh_install:
	mh_installpom -plibjcsp-java debian/pom.xml
	mh_installjar -plibjcsp-java -l debian/pom.xml dist/jcsp-*/jcsp.jar
	jh_installlibs  --upstream-version=${UPSTREAM_VERSION} dist/jcsp-*/jcsp-core.jar
	dh_install

override_dh_compress:
	dh_compress -X.java

get-orig-source:
	cd $(dir $(firstword $(MAKEFILE_LIST)))../ && \
	uscan \
		--verbose \
		--no-symlink \
		--destdir $(CURDIR)      \
		--watchfile debian/watch \
		--force-download