~ubuntu-branches/debian/squeeze/tuxguitar/squeeze

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Philippe Coval
  • Date: 2007-02-04 01:41:23 UTC
  • Revision ID: james.westby@ubuntu.com-20070204014123-bd6yb6g7rgqnohh0
Tags: 0.9.1-1
* New upstream release
* added support for java6 too (closes: #409543)
* Fix swt bug (closes: 406122)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/make -f
 
2
# -*- makefile -*-
 
3
#export DH_VERBOSE=1
 
4
PACKAGE=tuxguitar
 
5
 
 
6
#JAVA ?= jre/bin/java
 
7
#JAVAC ?= /usr/lib/jvm/java-1.5.0-sun/bin/javac
 
8
 
 
9
 
 
10
JAVA_HOME ?= $(shell echo \
 
11
  `( t=/usr/lib/jvm/java-6-sun && test -d $$t && echo $$t ) \
 
12
  || ( t=/usr/lib/jvm/java-1.5.0-sun && test -d $$t && echo $$t )`  \
 
13
 )
 
14
 
 
15
 
 
16
JAVA ?= ${JAVA_HOME}/jre/bin/java
 
17
JAVAC ?= ${JAVA_HOME}/bin/javac
 
18
 
 
19
MAKE_FLAGS ?= JAVAC=${JAVAC} JAVA=${JAVA}
 
20
 
 
21
build: build-stamp
 
22
 
 
23
build-stamp:
 
24
        dh_testdir
 
25
        ${MAKE} ${MAKE_FLAGS}
 
26
        docbook-to-man debian/${PACKAGE}.sgml > debian/${PACKAGE}.1
 
27
        touch $@
 
28
 
 
29
clean:
 
30
        dh_testdir
 
31
        dh_testroot
 
32
        -${MAKE} ${MAKE_FLAGS} distclean clean
 
33
        -${RM} -f build-stamp configure-stamp
 
34
        -${RM} debian/${PACKAGE}.1
 
35
        dh_clean
 
36
 
 
37
install: build
 
38
        dh_testdir
 
39
        dh_testroot
 
40
        dh_clean -k 
 
41
        dh_installdirs
 
42
#       ${MAKE} ${MAKE_FLAGS} install DESTDIR=${CURDIR}/debian/tuxguitar
 
43
 
 
44
binary-indep: build install
 
45
        dh_testdir
 
46
        dh_testroot
 
47
        dh_install
 
48
        dh_installchangelogs 
 
49
        dh_installdocs
 
50
#       dh_installexamples
 
51
        dh_installmenu
 
52
        dh_installman
 
53
        dh_link
 
54
        dh_compress
 
55
        dh_fixperms
 
56
        dh_installdeb
 
57
        dh_gencontrol
 
58
        dh_md5sums
 
59
        dh_builddeb
 
60
 
 
61
binary-arch: build install
 
62
 
 
63
binary: binary-indep binary-arch
 
64
.PHONY: build clean binary-indep binary-arch binary install configure
 
65
 
 
66
help:
 
67
        @echo "JAVA_HOME=${JAVA_HOME}"
 
68
 
 
69
#eof "$Id: rzr -- 20070130  -- rzr[a]users.sf.net $"