File: rules

package info (click to toggle)
trident 1.3%2Bdfsg-5
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, wheezy
  • size: 396 kB
  • ctags: 576
  • sloc: java: 2,857; xml: 154; makefile: 15; sh: 11
file content (33 lines) | stat: -rwxr-xr-x 740 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
29
30
31
32
33
#!/usr/bin/make -f

# Get definition of $(DEB_SRCDIR)
include /usr/share/cdbs/1/rules/buildvars.mk

JAVA_HOME=/usr/lib/jvm/default-java
export CLASSPATH=/usr/share/java/swt.jar
export JH_JAR_EXTRA=META-INF/trident-plugin.properties


%:
	dh $@ --with javahelper


# Don't use the packages own build system.
override_dh_auto_build::

# Link META-INF. Changing JH_JAR_EXTRA above instead results in the 
# files being in the wrong place in the resulting jar.
override_jh_build: 
	ln -s $(DEB_SRCDIR)/src/META-INF $(DEB_SRCDIR)/META-INF
	jh_build


# Clean up our symlink
override_dh_clean:
	rm -f $(DEB_SRCDIR)/META-INF
	dh_clean


get-orig-source:
	uscan --download-version $(subst +dfsg,,$(DEB_UPSTREAM_VERSION)) --force-download --rename