manually merge some changes in debian/ from trunk to branches/2.5 -- it seems they...
[debian/jabref.git] / debian / rules
1 #!/usr/bin/make -f
2 # -*- makefile -*-
3 # Sample debian/rules that uses debhelper.
4 # This file was originally written by Joey Hess and Craig Small.
5 # As a special exception, when this file is copied by dh-make into a
6 # dh-make output file, you may use that output file without restriction.
7 # This special exception was added by Craig Small in version 0.37 of dh-make.
8
9 # Uncomment this to turn on verbose mode.
10 #export DH_VERBOSE=1
11
12 include /usr/share/quilt/quilt.make
13
14 build: build-stamp
15 build-stamp: $(QUILT_STAMPFN)
16         dh_testdir
17         JAVA_HOME=/usr/lib/jvm/default-java ant jars
18         convert -geometry 32x32 src/images/JabRef-icon-48.png build/jabref32.xpm
19         convert -geometry 16x16 src/images/JabRef-icon-48.png build/jabref16.xpm
20         touch build-stamp
21
22 clean: unpatch
23         dh_testdir
24         dh_testroot
25         rm -f *-stamp
26         ant clean
27         dh_clean
28
29 install: install-stamp
30 install-stamp: build-stamp
31         dh_testdir
32         dh_testroot
33         dh_clean -k
34         dh_installdirs
35         install -m 755 debian/jabref-wrapper $(CURDIR)/debian/jabref/usr/bin/jabref
36         touch install-stamp
37
38 # Build architecture-independent files here.
39 binary-indep: build install
40         dh_testdir
41         dh_testroot
42         dh_installchangelogs src/txt/CHANGELOG
43         dh_installdocs src/txt/README
44         dh_install
45         dh_installmenu
46         dh_desktop
47         dh_installmime
48         dh_installman debian/jabref.1
49         dh_link
50         dh_compress
51         dh_fixperms
52         dh_installdeb
53         dh_gencontrol
54         dh_md5sums
55         dh_builddeb
56
57 # Build architecture-dependent files here.
58 binary-arch: build install
59 # We have nothing to do.
60
61 binary: binary-indep binary-arch
62 .PHONY: build clean binary-indep binary-arch binary install