File: rules

package info (click to toggle)
jasmin-sable 2.4.0-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze, wheezy
  • size: 1,232 kB
  • ctags: 1,458
  • sloc: java: 9,167; xml: 109; makefile: 18; csh: 16; sh: 1
file content (24 lines) | stat: -rwxr-xr-x 575 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
#!/usr/bin/make -f

ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
    export ANT_OPTS=-Dcompile.debug=true -Dcompile.optimize=false
else
    export ANT_OPTS=-Dcompile.debug=true -Dcompile.optimize=true
endif

%:
	dh $@

override_dh_auto_build:
	ant build_parser jasmin-jar

override_dh_auto_clean:
	ant clean
	rm -rf lib/*.jar
	dh_auto_clean

override_dh_auto_install:
	cp -v lib/jasminclasses-*.jar debian/jasmin-sable/usr/share/java
	cd debian/jasmin-sable/usr/share/java/; ln -v -s *.jar jasmin-sable.jar
	cp -v bin/jasmin debian/jasmin-sable/usr/bin
	dh_auto_install