File: rules

package info (click to toggle)
libcodemodel-java 2.0%2Bdak1-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 696 kB
  • ctags: 1,360
  • sloc: java: 5,729; xml: 190; makefile: 17; sh: 11
file content (23 lines) | stat: -rwxr-xr-x 770 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
#!/usr/bin/make -f

include /usr/share/cdbs/1/class/ant.mk
include /usr/share/cdbs/1/rules/debhelper.mk

JAVA_HOME_DIRS       := /usr/lib/jvm/java-6-openjdk /usr/lib/jvm/java-1.5.0-sun
DEB_ANT_BUILD_TARGET := jar
DEB_ANT_BUILDFILE    := debian/build.xml
ANT_OPTS   	     := -Dant.build.javac.source=1.5 -Dant.build.javac.target=1.5

ALL_JARS = $(wildcard *.jar)
DEST_DIR = $(DEB_DESTDIR)/usr/share/java

common-install-prehook-indep::
	for jar in $(ALL_JARS); do                         \
	  BASENAME=`basename $$jar .jar`;        	   \
	  FULLNAME=$$BASENAME-$(DEB_UPSTREAM_VERSION).jar; \
	  install -m 644 -D $$jar $(DEST_DIR)/$$FULLNAME;  \
	  ln -s $$FULLNAME $(DEST_DIR)/$$BASENAME.jar;     \
	done

get-orig-source:
	sh debian/orig-tar.sh $(DEB_UPSTREAM_VERSION)