File: rules

package info (click to toggle)
json-simple 1.1-dfsg1-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 228 kB
  • sloc: java: 1,810; xml: 69; makefile: 16; sh: 11
file content (28 lines) | stat: -rwxr-xr-x 719 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
# -*- makefile -*-

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

# This has to be exported to make some magic below work.
export DH_OPTIONS

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

%:
	dh $@ --with javahelper

override_dh_auto_build:
	dh_auto_build
	javadoc -windowtitle "Javadoc of json-simple" -sourcepath src -d docs \
                -link /usr/share/doc/default-jdk-doc/api \
                org.json.simple

override_dh_auto_clean:
	[ ! -d build/main ] || dh_auto_clean
	rm -fr docs

get-orig-source:
	destdir=$(CURDIR) && \
	cd $(shell dirname $(word $(words $(MAKEFILE_LIST)),$(MAKEFILE_LIST)))/.. && \
	USCAN_DESTDIR=$$destdir uscan --noconf --force-download --rename