372200d4e1e3a0757dabc49157f90720edce6f88
[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_installmime
47         dh_installman debian/jabref.1
48         dh_link
49         dh_compress
50         dh_fixperms
51         dh_installdeb
52         dh_gencontrol
53         dh_md5sums
54         dh_builddeb
55
56 # Build architecture-dependent files here.
57 binary-arch: build install
58 # We have nothing to do.
59
60 binary: binary-indep binary-arch
61 .PHONY: build clean binary-indep binary-arch binary install