* Apply patch from Matthias Klose to enable building with a free java compiler -
[debian/jabref.git] / debian / rules
index caceddf..b0d93d1 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-stamp: configure-stamp 
-       dh_testdir
+build: build-stamp patch
        ant compile unjarlib jars
        convert -geometry 32x32 src/images/JabRef-icon-48.png build/jabref32.xpm
        convert -geometry 16x16 src/images/JabRef-icon.png build/jabref16.xpm
 
+build-stamp: configure-stamp 
+       dh_testdir
        touch build-stamp
 
-clean:
+clean: unpatch
        dh_testdir
        dh_testroot
        rm -f build-stamp configure-stamp