~ubuntu-branches/ubuntu/natty/junitperf/natty

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Takashi Okamoto
  • Date: 2002-02-16 22:10:09 UTC
  • Revision ID: james.westby@ubuntu.com-20020216221009-a5qgmt35vefjtvuo
Tags: 1.6-1
* Initial Release.
* close ITP.(Closes: #134235)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/make -f
 
2
# Sample debian/rules that uses debhelper.
 
3
# GNU copyright 1997 to 1999 by Joey Hess.
 
4
 
 
5
# Uncomment this to turn on verbose mode.
 
6
#export DH_VERBOSE=1
 
7
 
 
8
# This is the debhelper compatability version to use.
 
9
export DH_COMPAT=3
 
10
 
 
11
export LANG=C
 
12
 
 
13
# Directories to look for JAVA_HOME (JDK 1.2+ rquired!)
 
14
jdk_dirs:=/usr/lib/j2se/1.3 /usr/lib/j2sdk1.3
 
15
export JAVA_HOME=$(shell for jdir in $(jdk_dirs); do if [ -d "$$jdir" ]; then echo $$jdir; exit 0; fi; done)
 
16
 
 
17
export ANT=/usr/bin/ant
 
18
export CLASSPATH=/usr/share/java/junit.jar:.
 
19
 
 
20
LIBRARY=junitperf
 
21
VERSION=1.6
 
22
 
 
23
build: build-stamp
 
24
build-stamp:
 
25
        dh_testdir
 
26
 
 
27
        # Add here commands to compile the package.
 
28
        ${ANT} jar doc
 
29
        touch build-stamp
 
30
 
 
31
clean:
 
32
        dh_testdir
 
33
        dh_testroot
 
34
        rm -f build-stamp
 
35
 
 
36
        # Add here commands to clean up after the build process.
 
37
        ant clean
 
38
        dh_clean
 
39
 
 
40
install: build
 
41
        dh_testdir
 
42
        dh_testroot
 
43
        dh_clean -k
 
44
        dh_installdirs
 
45
 
 
46
        # Add here commands to install the package into debian/junitperf.
 
47
        install -m 644 lib/${LIBRARY}.jar $(CURDIR)/debian/lib${LIBRARY}-java/usr/share/java/${LIBRARY}-${VERSION}.jar
 
48
        
 
49
 
 
50
 
 
51
 
 
52
# Build architecture-independent files here.
 
53
binary-indep: build install
 
54
# We have nothing to do by default.
 
55
 
 
56
# Build architecture-dependent files here.
 
57
binary-arch: build install
 
58
        dh_testdir
 
59
        dh_testroot
 
60
#       dh_installdebconf       
 
61
        dh_installdocs
 
62
        dh_installexamples
 
63
        dh_installmenu
 
64
#       dh_installlogrotate
 
65
#       dh_installemacsen
 
66
#       dh_installpam
 
67
#       dh_installmime
 
68
#       dh_installinit
 
69
        dh_installcron
 
70
        dh_installman
 
71
        dh_installinfo
 
72
#       dh_undocumented
 
73
        dh_installchangelogs 
 
74
        dh_link
 
75
        dh_strip
 
76
        dh_compress
 
77
        dh_fixperms
 
78
#       dh_makeshlibs
 
79
        dh_installdeb
 
80
#       dh_perl
 
81
        dh_shlibdeps
 
82
        dh_gencontrol
 
83
        dh_md5sums
 
84
        dh_builddeb
 
85
 
 
86
binary: binary-indep binary-arch
 
87
.PHONY: build clean binary-indep binary-arch binary install