* New upstream release.
[debian/jabref.git] / debian / rules
index 8926a2619a6e23f981467370b4b75fdb6a54fade..cc0885bac0ff7c46738f4620d8597c85565b4ab8 100755 (executable)
@@ -9,23 +9,23 @@
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
 
+include /usr/share/dpatch/dpatch.make
+
 configure: configure-stamp
 configure-stamp:
        dh_testdir
        touch configure-stamp
 
-
-build: build-stamp
+build: build-stamp patch
+       ant jars
+       convert -geometry 32x32 src/images/JabRef-icon-48.png build/jabref32.xpm
+       convert -geometry 16x16 src/images/JabRef-icon-48.png build/jabref16.xpm
 
 build-stamp: configure-stamp 
        dh_testdir
-       ant compile unjarlib jars
-       convert -size 32x32 src/images/JabRef-icon-48.png debian/jabref32.xpm
-       convert -size 16x16 src/images/JabRef-icon.png debian/jabref16.xpm
-
        touch build-stamp
 
-clean:
+clean: unpatch
        dh_testdir
        dh_testroot
        rm -f build-stamp configure-stamp
@@ -35,9 +35,9 @@ clean:
 install: build
        dh_testdir
        dh_testroot
-       dh_clean -k 
+       dh_clean 
        dh_installdirs
-
+                                                        
 # Build architecture-independent files here.
 binary-indep: build install
        dh_testdir
@@ -47,16 +47,17 @@ binary-indep: build install
 #      dh_installexamples
        dh_install
        dh_installmenu
+       dh_desktop
 #      dh_installdebconf       
 #      dh_installlogrotate
 #      dh_installemacsen
 #      dh_installpam
-#      dh_installmime
+       dh_installmime
 #      dh_installinit
 #      dh_installcron
 #      dh_installinfo
        dh_installman
-#      dh_link
+       dh_link
 #      dh_strip
        dh_compress
        dh_fixperms