File: rules

package info (click to toggle)
idm-console-framework 1.1.14-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 6,564 kB
  • ctags: 10,919
  • sloc: java: 68,339; makefile: 488; xml: 254; sh: 49; perl: 23
file content (27 lines) | stat: -rwxr-xr-x 654 bytes parent folder | download | duplicates (3)
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
#!/usr/bin/make -f

#export DH_VERBOSE=1

# ant doesn't support --builddirectory
BUILT_DIR=$(CURDIR)/build

override_dh_auto_clean:
	dh_auto_clean
	rm -rf $(BUILT_DIR)

override_dh_auto_configure:

override_dh_auto_build:
	ant -Dlib.dir=/usr/lib \
		-Dant.build.javac.source=1.5 \
		-Dant.build.javac.target=1.5 \
		-Dbuilt.dir=$(BUILT_DIR) \
		-Dclassdest=/usr/share/java \
		-Djss.local.location=/usr/share/java

override_dh_auto_install:
	mkdir -p $(CURDIR)/debian/libidm-console-framework-java/usr/share/java/
	install -m 644 $(BUILT_DIR)/release/jars/*.jar $(CURDIR)/debian/libidm-console-framework-java/usr/share/java/

%:
	dh $@ --with javahelper