File: rules

package info (click to toggle)
libandroid-json-org-java 20121204-20090211-5
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, buster
  • size: 332 kB
  • sloc: java: 3,657; xml: 134; makefile: 14
file content (20 lines) | stat: -rwxr-xr-x 536 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
#!/usr/bin/make -f

export JAVA_HOME = /usr/lib/jvm/default-java

%:
	dh $@ --buildsystem=maven

generate-sources:
	cp debian/pom.xml pom.xml
	mkdir -p v-android && cp -a src v-android/ && cp debian/pom.android.xml v-android/pom.xml
	mkdir -p v-latest && cp -a src v-latest/ && cp debian/pom.latest.xml v-latest/pom.xml
	cd v-latest && QUILT_PATCHES=../debian/patches-latest quilt push -a

override_dh_auto_configure: generate-sources
	dh_auto_configure

override_dh_auto_clean:
	dh_auto_clean
	rm -rf v-android v-latest
	rm -f pom.xml