[Pkg-wmaker-commits] [wmitime] 22/127: debian/rules: install *.desktop file

Doug Torrance dtorrance-guest at moszumanska.debian.org
Sat Aug 22 01:34:31 UTC 2015


This is an automated email from the git hooks/post-receive script.

dtorrance-guest pushed a commit to branch master
in repository wmitime.

commit bbd3abd4dcd8ffc9a0a0e5104217a4c36f35d55f
Author: Jari Aalto <jari.aalto at cante.net>
Date:   Mon Oct 27 07:45:45 2008 +0200

    debian/rules: install *.desktop file
    
    Signed-off-by: Jari Aalto <jari.aalto at cante.net>
---
 debian/rules | 21 ++++++++-------------
 1 file changed, 8 insertions(+), 13 deletions(-)

diff --git a/debian/rules b/debian/rules
index 0091394..34f12d6 100755
--- a/debian/rules
+++ b/debian/rules
@@ -5,22 +5,14 @@
 #export DH_VERBOSE=1
 
 PACKAGE = wmitime
+BIN	= $(PACKAGE)/$(PACKAGE)
 MANSECT = 1x
 MANSRC  = debian
 MK_MAN  = pod2man.mk
-BIN	= $(PACKAGE)/$(PACKAGE)
 
 include debian/debian-vars.mk
 include /usr/share/dpatch/dpatch.make
 
-CFLAGS = -Wall -g
-
-ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
-	CFLAGS += -O0
-else
-	CFLAGS += -O2
-endif
-
 man:
 	$(MAKE) -C $(MANSRC) -f $(MK_MAN) PACKAGE=$(PACKAGE) \
 	MANSECT=$(MANSECT) makeman
@@ -29,7 +21,7 @@ configure: configure-stamp
 configure-stamp:
 	dh_testdir
 
-	# Add here commands to configure the package.
+	# Commands to configure the package.
 	touch configure-stamp
 
 build: patch build-stamp
@@ -47,7 +39,7 @@ clean: unpatch
 	dh_testroot
 	rm -f build-stamp configure-stamp
 
-	# Add here commands to clean up after the build process.
+	# Commands to clean up after the build process.
 	[ ! -f wmitime/Makefile ] || $(MAKE) -C wmitime clean
 
 	dh_clean
@@ -58,10 +50,12 @@ install: build
 	dh_clean -k
 	dh_installdirs
 
-	# Add here commands to install the package into debian/wmitime.
-	# Not used: $(MAKE) DESTDIR=$(PKGDIR) install
+	# Commands to install the package into debian/wmitime.
+	# $(MAKE) DESTDIR=$(PKGDIR) install
 
 	install -D -m 755  $(BIN) $(BINDIR)/$(PACKAGE)
+	$(INSTALL_DIR) $(DESKTOPDIR)
+	$(INSTALL_DATA) debian/*.desktop $(DESKTOPDIR)
 
 # Build architecture-independent files here.
 binary-indep: build install
@@ -89,6 +83,7 @@ binary-arch: build install
 	dh_installman debian/*.$(MANSECT)
 	dh_link
 	dh_strip
+	dh_desktop
 	dh_compress
 	dh_fixperms
 #	dh_perl

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-wmaker/wmitime.git



More information about the Pkg-wmaker-commits mailing list