Adding debian version 0.5.0-3.
[debian/lxde-common.git] / debian / rules
index dd00a63..be5d0fd 100755 (executable)
@@ -16,6 +16,13 @@ include /usr/share/dpatch/dpatch.make
 DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
 DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
 
+CFLAGS = -Wall -g
+
+ifneq (,$(filter noopt,$(DEB_BUILD_OPTIONS)))
+    CFLAGS += -O0
+else
+    CFLAGS += -O2
+endif
 
 config.status: configure patch-stamp
        dh_testdir
@@ -26,7 +33,7 @@ endif
 ifneq "$(wildcard /usr/share/misc/config.guess)" ""
        cp -f /usr/share/misc/config.guess config.guess
 endif
-       ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info CFLAGS="$(CFLAGS)" LDFLAGS="-Wl,-z,defs"
+       ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --sysconfdir=/etc --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info CFLAGS="$(CFLAGS)" LDFLAGS="-Wl,-z,defs"
 
 
 build: build-stamp
@@ -48,6 +55,7 @@ clean: unpatch
        # Add here commands to clean up after the build process.
        [ ! -f Makefile ] || $(MAKE) distclean
        rm -f config.sub config.guess
+       rm -f lxde-settings/*.gcno
 
        dh_clean 
 
@@ -60,55 +68,32 @@ install: build
        # Add here commands to install the package into debian/lxde-common.
        $(MAKE) DESTDIR=$(CURDIR)/debian/lxde-common install
 
+       # Install .desktop files
+       install -d $(CURDIR)/debian/lxde-common/usr/share/applications/
+       install $(CURDIR)/debian/lxde-logout.desktop $(CURDIR)/debian/lxde-common/usr/share/applications/
+       install $(CURDIR)/debian/lxde-screenlock.desktop $(CURDIR)/debian/lxde-common/usr/share/applications/
+       dh_movefiles --sourcedir=debian/lxde-common
+
+
 
 # Build architecture-independent files here.
 binary-indep: build install
        dh_testdir
        dh_testroot
-       dh_installchangelogs -Nlxde-settings-daemon
-       dh_installdocs -Nlxde-settings-daemon
-       dh_movefiles --sourcedir=debian/lxde-common
-       dh_installman -Nlxde-settings-daemon 
-       dh_link usr/share/doc/lxde-common usr/share/doc/lxde
-       dh_strip -Nlxde-settings-daemon
-       dh_compress -Nlxde-settings-daemon
-       dh_fixperms -Nlxde-settings-daemon
-       dh_installdeb -Nlxde-settings-daemon
-       dh_gencontrol -Nlxde-settings-daemon
-       dh_md5sums -Nlxde-settings-daemon
-       dh_builddeb -Nlxde-settings-daemon
+       dh_installchangelogs 
+       dh_installdocs 
+       dh_installman 
+       dh_link -a
+       dh_compress 
+       dh_fixperms 
+       dh_installdeb
+       dh_gencontrol 
+       dh_md5sums 
+       dh_builddeb 
 
 # Build architecture-dependent files here.
-binary-arch: build install
-       dh_testdir
-       dh_testroot
-       dh_installchangelogs -plxde-settings-daemon
-       dh_installdocs -plxde-settings-daemon
-#      dh_installexamples
-#      dh_install
-#      dh_installmenu
-#      dh_installdebconf       
-#      dh_installlogrotate
-#      dh_installemacsen
-#      dh_installpam
-#      dh_installmime
-#      dh_python
-#      dh_installinit
-#      dh_installcron
-#      dh_installinfo
-       dh_installman -plxde-settings-daemon 
-       dh_link usr/share/doc/lxde-common usr/share/doc/lxde \
-               usr/share/doc/lxde-common usr/share/doc/lxde-settings-daemon
-       dh_strip -plxde-settings-daemon
-       dh_compress -plxde-settings-daemon
-       dh_fixperms -plxde-settings-daemon
-#      dh_perl
-#      dh_makeshlibs
-       dh_installdeb -plxde-settings-daemon
-       dh_shlibdeps -L lxde-settings-daemon -l debian/lxde-settings-daemon/usr/bin
-       dh_gencontrol -plxde-settings-daemon
-       dh_md5sums -plxde-settings-daemon
-       dh_builddeb -plxde-settings-daemon
+binary-arch: install
+# We have nothing to do here.
 
 binary: binary-indep binary-arch
 .PHONY: build clean binary-indep binary-arch binary install