debian/watch: use sourceforge URL directly instead of the redirector
[debian/jabref.git] / debian / rules
index 864618b..ddf2d46 100755 (executable)
 include /usr/share/dpatch/dpatch.make
 
 configure: configure-stamp
-configure-stamp:
+configure-stamp: patch
        dh_testdir
        touch configure-stamp
 
-build: build-stamp patch
-       ant compile unjarlib jars
+build: build-stamp
+build-stamp: configure-stamp
+       dh_testdir
+       JAVA_HOME=/usr/lib/jvm/java-gcj 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
        touch build-stamp
 
 clean: unpatch
        dh_testdir
        dh_testroot
-       rm -f build-stamp configure-stamp
-       if [ -d build ] ; then rm -r build; fi
+       rm -f *-stamp
+       ant clean
        dh_clean 
 
-install: build
+install: install-stamp
+install-stamp: build-stamp
        dh_testdir
        dh_testroot
-       dh_clean -k 
+       dh_clean -k
        dh_installdirs
+       install -m 755 debian/jabref-wrapper $(CURDIR)/debian/jabref/usr/bin/jabref
+       touch install-stamp
                                                         
 # Build architecture-independent files here.
 binary-indep: build install
        dh_testdir
        dh_testroot
-       dh_installchangelogs 
-       dh_installdocs
-#      dh_installexamples
+       dh_installchangelogs src/txt/CHANGELOG
+       dh_installdocs src/txt/README
        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_desktop
+       dh_installmime
+       dh_installman debian/jabref.1
+       dh_link
        dh_compress
        dh_fixperms
-#      dh_perl
-#      dh_python
-#      dh_makeshlibs
        dh_installdeb
-#      dh_shlibdeps
        dh_gencontrol
        dh_md5sums
        dh_builddeb