File: rules

package info (click to toggle)
cgview 0.0.20100111-7
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 14,208 kB
  • sloc: xml: 17,033; java: 11,430; perl: 2,991; javascript: 1,179; sh: 38; makefile: 17
file content (25 lines) | stat: -rwxr-xr-x 842 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
#!/usr/bin/make -f

# DH_VERBOSE := 1

include /usr/share/dpkg/default.mk

JAVA_HOME  := /usr/lib/jvm/default-java
DEBJAR    := /usr/share/java
CLASS_PATH := $(DEBJAR)/batik-all.jar:$(DEBJAR)/batik-constants.jar:$(DEBJAR)/batik-awt-util.jar:$(DEBJAR)/batik-dom.jar:$(DEBJAR)/batik-svggen.jar:$(DEBJAR)/batik-util.jar:$(DEBJAR)/batik-xml.jar:$(DEBJAR)/commons-lang.jar:$(DEBJAR)/jargs.jar:$(DEBJAR)/xercesImpl.jar

%:
	dh $@ --with javahelper

override_dh_clean:
	dh_clean
	rm -f src/ca/ualberta/stothard/cgview/*.class
	rm -rf src/includes
	find . -name "*.jar" -delete

override_dh_auto_build:
	cd src && \
	cp -a ca/ualberta/stothard/cgview/includes . && \
	javac -classpath $(CLASS_PATH) ca/ualberta/stothard/cgview/*.java && \
	jar -cmf ../manifestinfo $(DEB_SOURCE).jar ca/ualberta/stothard/cgview/*.class includes && \
	rm -rf includes