icons for menu file
[debian/jabref.git] / debian / rules
index a6343b2..2e0f57e 100755 (executable)
@@ -12,8 +12,6 @@
 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
 
 
@@ -21,10 +19,9 @@ build: build-stamp
 
 build-stamp: configure-stamp 
        dh_testdir
 
 build-stamp: configure-stamp 
        dh_testdir
-
-       # Add here commands to compile the package.
-       #$(MAKE)
        ant compile unjarlib jars
        ant compile unjarlib jars
+       convert src/images/JabRef-icon-48.png debian/jabref48.xpm
+       convert src/images/JabRef-icon.png debian/jabref16.xpm
 
        touch build-stamp
 
 
        touch build-stamp
 
@@ -32,11 +29,7 @@ clean:
        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
-
+       if [ -d build ] ; then rm -r build; fi
        dh_clean 
 
 install: build
        dh_clean 
 
 install: build
@@ -45,23 +38,15 @@ install: build
        dh_clean -k 
        dh_installdirs
 
        dh_clean -k 
        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_installexamples
        dh_install
        dh_testdir
        dh_testroot
        dh_installchangelogs 
        dh_installdocs
 #      dh_installexamples
        dh_install
-#      dh_installmenu
+       dh_installmenu
 #      dh_installdebconf       
 #      dh_installlogrotate
 #      dh_installemacsen
 #      dh_installdebconf       
 #      dh_installlogrotate
 #      dh_installemacsen
@@ -84,5 +69,9 @@ binary-arch: build install
        dh_md5sums
        dh_builddeb
 
        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