s/UNRELEASED/unstable/
[debian/jabref.git] / debian / rules
index a6343b2f526f90639eb181b103510dc99b5070d2..2d94c909fb557eb9ad77ca7ffa2f7410b4b42cd8 100755 (executable)
@@ -9,80 +9,57 @@
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
 
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
 
+include /usr/share/dpatch/dpatch.make
+
 configure: configure-stamp
 configure-stamp:
        dh_testdir
 configure: configure-stamp
 configure-stamp:
        dh_testdir
-       # Add here commands to configure the package.
-
        touch configure-stamp
 
        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
 
 build-stamp: configure-stamp 
        dh_testdir
-
-       # Add here commands to compile the package.
-       #$(MAKE)
-       ant compile unjarlib jars
-
        touch build-stamp
 
        touch build-stamp
 
-clean:
+clean: unpatch
        dh_testdir
        dh_testroot
        rm -f build-stamp configure-stamp
        dh_testdir
        dh_testroot
        rm -f build-stamp configure-stamp
-
-       # Add here commands to clean up after the build process.
-       #-$(MAKE) clean
-       -rm -r build
-
+       ant clean
        dh_clean 
 
 install: build
        dh_testdir
        dh_testroot
        dh_clean 
 
 install: build
        dh_testdir
        dh_testroot
-       dh_clean -k 
+       dh_clean 
        dh_installdirs
        dh_installdirs
-
-       # Add here commands to install the package into debian/jabref.
-       #$(MAKE) install DESTDIR=$(CURDIR)/debian/jabref
-
-
+                                                        
 # Build architecture-independent files here.
 binary-indep: build install
 # Build architecture-independent files here.
 binary-indep: build install
-# We have nothing to do by default.
-
-# Build architecture-dependent files here.
-binary-arch: build install
        dh_testdir
        dh_testroot
        dh_installchangelogs 
        dh_installdocs
        dh_testdir
        dh_testroot
        dh_installchangelogs 
        dh_installdocs
-#      dh_installexamples
        dh_install
        dh_install
-#      dh_installmenu
-#      dh_installdebconf       
-#      dh_installlogrotate
-#      dh_installemacsen
-#      dh_installpam
-#      dh_installmime
-#      dh_installinit
-#      dh_installcron
-#      dh_installinfo
-       dh_installman
-#      dh_link
-#      dh_strip
+       dh_installmenu
+       dh_desktop
+       dh_installmime
+       dh_installman debian/jabref.1
+       dh_link
        dh_compress
        dh_fixperms
        dh_compress
        dh_fixperms
-#      dh_perl
-#      dh_python
-#      dh_makeshlibs
        dh_installdeb
        dh_installdeb
-#      dh_shlibdeps
        dh_gencontrol
        dh_md5sums
        dh_builddeb
 
        dh_gencontrol
        dh_md5sums
        dh_builddeb
 
+# Build architecture-dependent files here.
+binary-arch: build install
+# We have nothing to do.
+
 binary: binary-indep binary-arch
 .PHONY: build clean binary-indep binary-arch binary install configure
 binary: binary-indep binary-arch
 .PHONY: build clean binary-indep binary-arch binary install configure