Remove debian docs and install upstream README directly from
[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         JAVA_HOME=/usr/lib/jvm/java-gcj 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 -k
39         dh_installdirs
40         install -m 755 debian/jabref-wrapper $(CURDIR)/debian/jabref/usr/bin/jabref
41         touch install-stamp
42                                                         
43 # Build architecture-independent files here.
44 binary-indep: build install
45         dh_testdir
46         dh_testroot
47         dh_installchangelogs changelog_highlights.txt
48         dh_installdocs src/txt/README
49         dh_install
50         dh_installmenu
51         dh_desktop
52         dh_installmime
53         dh_installman debian/jabref.1
54         dh_link
55         dh_compress
56         dh_fixperms
57         dh_installdeb
58         dh_gencontrol
59         dh_md5sums
60         dh_builddeb
61
62 # Build architecture-dependent files here.
63 binary-arch: build install
64 # We have nothing to do.
65
66 binary: binary-indep binary-arch
67 .PHONY: build clean binary-indep binary-arch binary install configure