From c959a9d8568e5a5fa318ff2a8e8c46b324a44676 Mon Sep 17 00:00:00 2001 From: Trent Buck Date: Sat, 19 Nov 2005 18:15:00 +0000 Subject: Implement an emms-info function using the libtag package. darcs-hash:20051119181528-8f417-cccb6d14779011d1e58eac89474282257768e631.gz --- debian/rules | 58 +++++++++++++++++++++++++++++++++++++++++----------------- 1 file changed, 41 insertions(+), 17 deletions(-) (limited to 'debian/rules') diff --git a/debian/rules b/debian/rules index 16aece6..65c8978 100755 --- a/debian/rules +++ b/debian/rules @@ -25,42 +25,64 @@ configure-stamp: touch configure-stamp -build: build-stamp - -build-stamp: configure-stamp +build: +build-indep: build-indep-stamp +build-arch: build-arch-stamp +build-arch-stamp: + make emms-print-metadata + touch build-arch-stamp +build-indep-stamp: configure-stamp dh_testdir make emms.info make emms-auto.el make ChangeLog - touch build-stamp + touch build-indep-stamp clean: dh_testdir dh_testroot - rm -f build-stamp configure-stamp + rm -f build-arch-stamp build-indep-stamp configure-stamp # Add here commands to clean up after the build process. -$(MAKE) clean dh_clean -install: build +install: install-indep install-arch +install-indep: dh_testdir dh_testroot - dh_clean -k - dh_installdirs + dh_clean -k -i + dh_installdirs -i - # Add here commands to install the package into debian/emms. + # Add here commands to install the indep part of the package into + # debian/emms. $(MAKE) deb-install DESTDIR=$(CURDIR)/debian/emms + dh_installinfo -i emms.info + + dh_install -i + +install-arch: + dh_testdir + dh_testroot + dh_clean -k -s + dh_installdirs -s + + # Add here commands to install the arch part of the package into + # debian/emms-extras. + install emms-print-metadata debian/emms-extras/usr/bin/ + + dh_install -s -# Build architecture-independent files here. -binary-indep: build install +# Must not depend on anything. This is to be called by +# binary-arch/binary-indep +# in another 'make' thread. +binary-common: dh_testdir dh_testroot dh_installchangelogs ChangeLog dh_installdocs # dh_installexamples - dh_install # dh_installmenu # dh_installdebconf # dh_installlogrotate @@ -69,10 +91,9 @@ binary-indep: build install # dh_installmime # dh_installinit # dh_installcron - dh_installinfo emms.info # dh_installman dh_link -# dh_strip + dh_strip dh_compress dh_fixperms # dh_perl @@ -83,10 +104,13 @@ binary-indep: build install dh_gencontrol dh_md5sums dh_builddeb +# Build architecture independent packages using the common target. +binary-indep: build-indep install-indep + $(MAKE) -f debian/rules DH_OPTIONS=-i binary-common -# Build architecture-dependent files here. -binary-arch: build install -# We have nothing to do by default. +# Build architecture dependant packages using the common target. +binary-arch: build-arch install-arch + $(MAKE) -f debian/rules DH_OPTIONS=-a binary-common binary: binary-indep binary-arch .PHONY: build clean binary-indep binary-arch binary install configure -- cgit v1.2.3