File: rules

package info (click to toggle)
swing-layout 1.0.3-1
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 100 kB
  • ctags: 4
  • sloc: makefile: 18
file content (34 lines) | stat: -rwxr-xr-x 1,141 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
34
#!/usr/bin/make -f

#export DH_VERBOSE=1

DEB_TAR_SRCDIR          := swing-layout-1.0.3

JAVA_HOME=/usr/lib/jvm/java-gcj

include /usr/share/cdbs/1/rules/tarball.mk
include /usr/share/cdbs/1/rules/debhelper.mk

# package name
swing-layout-pkg        := libswing-layout-java
swing-layout-doc-pkg    := $(swing-layout-pkg)-doc

build/$(swing-layout-pkg):: stamp-build-$(swing-layout-pkg)

# This target is here to avoid multiple invocation of build target.
# build/$(swing-layout-pkg) is invoked 2 times when building binary packages.
stamp-build-$(swing-layout-pkg):
	ant -Ddist.javadoc.dir=dist/api -f $(DEB_SRCDIR)/build.xml
	touch $@
	
install/$(swing-layout-pkg)::
	install -m 644 $(DEB_SRCDIR)/dist/swing-layout.jar debian/$(swing-layout-pkg)/usr/share/java/swing-layout-$(DEB_UPSTREAM_VERSION).jar
	dh_link -p$(swing-layout-pkg) usr/share/java/swing-layout-$(DEB_UPSTREAM_VERSION).jar usr/share/java/swing-layout.jar
	
install/$(swing-layout-doc-pkg)::
	dh_installdocs -p$(swing-layout-doc-pkg) $(DEB_SRCDIR)/dist/api
	
clean::
	# these files are left by cdbs (a bug?)
	-rm -f *.cdbs-config_list
	-rm -f stamp-build-$(swing-layout-pkg)