~ubuntu-branches/ubuntu/lucid/libjcommon-java/lucid

« back to all changes in this revision

Viewing changes to debian/rules.sos

  • Committer: Bazaar Package Importer
  • Author(s): Wolfgang Baer
  • Date: 2006-02-09 15:58:13 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20060209155813-fzi9zwh2rzedbllq
Tags: 1.0.0-1
* New stable upstream release (closes: #328574)
* Move to main - build with kaffe
* Use cdbs build system - added cdbs build-dependency
* Move package to pkg-java-maintainers for comaintenance, 
  added Christian Bayle and myself as uploaders
* Removed unneeded README.Debian
* Added README.Debian-source how the upstream tarball was cleaned
* Move big documentation in an own -doc package
* Register javadoc api with doc-base
* Standards-Version 3.6.2 (no changes)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/usr/bin/make -f
2
 
 
3
 
# Uncomment this to turn on verbose mode.
4
 
#export DH_VERBOSE=1
5
 
 
6
 
# Build with Kaffe
7
 
export JAVA_HOME=/usr/lib/kaffe
8
 
export JAVA=/usr/lib/kaffe/bin/java
9
 
export JAR=fastjar
10
 
export CLASSPATH=/usr/share/kaffe:/usr/share/java/libgcj.jar:.
11
 
export LIBRARY = $(shell head -1 debian/control | sed 's/Source? lib\(.*\)-java/\1/')
12
 
export VERSION = $(shell head -1 debian/changelog | sed 's/.*(\(.*\)).*/\1/' )
13
 
export SRCDIR=$(LIBRARY)-$(VERSION)
14
 
 
15
 
 
16
 
 
17
 
configure: configure-stamp
18
 
configure-stamp:
19
 
        dh_testdir
20
 
        # Add here commands to configure the package.
21
 
 
22
 
        touch configure-stamp
23
 
 
24
 
 
25
 
build: build-stamp
26
 
build-stamp:
27
 
        dh_testdir
28
 
        (cd $(SRCDIR); jikes -d ../classes -classpath ${CLASSPATH}:. `find . -name "*.java"`)
29
 
        (cd classes ; ls ;$(JAR) cvf ../../$(LIBRARY)-$(VERSION).jar `find . -name "*.class"`)
30
 
        touch build-stamp
31
 
 
32
 
clean:
33
 
        dh_testdir
34
 
        dh_testroot
35
 
        -rm -f build-stamp
36
 
        dh_clean
37
 
 
38
 
binary-indep: build
39
 
        dh_testdir
40
 
        dh_testroot
41
 
        dh_clean -k
42
 
        dh_installdirs
43
 
        #
44
 
        # Package 
45
 
        #
46
 
        install -m 644 $(SRCDIR)/$(LIBRARY)-$(VERSION).jar \
47
 
        debian/libjcommon-java/usr/share/java/$(LIBRARY)-$(VERSION).jar
48
 
        ln -s $(LIBRARY)-$(VERSION).jar debian/libjcommon-java/usr/share/java/$(LIBRARY).jar
49
 
 
50
 
binary: binary-indep 
51
 
 
52
 
.PHONY: binary binary-indep clean