e69b2de9a041306b209dd8953acd1d07b84781da
[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/dpatch/dpatch.make
13
14 configure: configure-stamp
15 configure-stamp: patch
16         dh_testdir
17         touch configure-stamp
18
19 build: build-stamp
20 build-stamp: configure-stamp
21         dh_testdir
22         ant jars
23         convert -geometry 32x32 src/images/JabRef-icon-48.png build/jabref32.xpm
24         convert -geometry 16x16 src/images/JabRef-icon-48.png build/jabref16.xpm
25         touch build-stamp
26
27 clean: unpatch
28         dh_testdir
29         dh_testroot
30         rm -f *-stamp
31         ant clean
32         dh_clean 
33
34 install: install-stamp
35 install-stamp: build-stamp
36         dh_testdir
37         dh_testroot
38         dh_clean 
39         dh_installdirs
40         touch install-stamp
41                                                         
42 # Build architecture-independent files here.
43 binary-indep: build install
44         dh_testdir
45         dh_testroot
46         dh_installchangelogs changelog_highlights.txt
47         dh_installdocs
48         dh_install
49         dh_installmenu
50         dh_desktop
51         dh_installmime
52         dh_installman debian/jabref.1
53         dh_link
54         dh_compress
55         dh_fixperms
56         dh_installdeb
57         dh_gencontrol
58         dh_md5sums
59         dh_builddeb
60
61 # Build architecture-dependent files here.
62 binary-arch: build install
63 # We have nothing to do.
64
65 binary: binary-indep binary-arch
66 .PHONY: build clean binary-indep binary-arch binary install configure