From 744e0f1593923edd0e6a6a75c0eb19c2943cfade Mon Sep 17 00:00:00 2001 From: Fritz Elfert Date: Mon, 15 Jul 2002 03:30:48 +0000 Subject: - Ongoing dpkg development --- debian/rules | 26 +++++++++++++++++++------- 1 file changed, 19 insertions(+), 7 deletions(-) (limited to 'debian/rules') diff --git a/debian/rules b/debian/rules index 789ceab..d2968a6 100755 --- a/debian/rules +++ b/debian/rules @@ -3,13 +3,17 @@ # GNU copyright 1997 to 1999 by Joey Hess. # Uncomment this to turn on verbose mode. -#export DH_VERBOSE=1 +export DH_VERBOSE=1 # This is the debhelper compatability version to use. export DH_COMPAT=3 tmp = $(shell pwd)/debian/tmp +%.1: %.1.in + MANDATE=`grep CHECKIN $< | awk '{print $$4}'` ; \ + sed -e "s%@MANDATE@%$$MANDATE%g" $< > $@ + configure: configure-stamp configure-stamp: dh_testdir @@ -24,7 +28,8 @@ configure-stamp: autoconf touch include/stamp-h.in ./configure --prefix=/usr --with-mountdir=/var/lib/plptools/mnt \ - --mandir=/usr/share/man --with-initdir=none --enable-kde + --mandir=/usr/share/man --with-initdir=none --enable-kde \ + --disable-rpath touch configure-stamp build: configure-stamp build-stamp @@ -38,20 +43,27 @@ clean: dh_testdir dh_testroot rm -f build-stamp configure-stamp - # Add here commands to clean up after the build process. -$(MAKE) maintainer-clean dh_clean -install: build +man-install: debian/kpsion.1 debian/klipsi.1 + install -m 644 $^ $(tmp)/usr/share/man/man1 + +install: build debian/kpsion.1 debian/klipsi.1 dh_testdir dh_testroot dh_clean -k dh_installdirs - # Add here commands to install the package into debian/tmp. + # install into debian/tmp. $(MAKE) DESTDIR=$(tmp) install - mkdir -p $(tmp)/etc + install -d $(tmp)/etc install -m 644 debian/plptools.conf $(tmp)/etc + install -m 644 debian/kpsion.1 $(tmp)/usr/share/man/man1 + install -m 644 debian/klipsi.1 $(tmp)/usr/share/man/man1 + cp CHANGES obsolete-changes + cp ChangeLog changelog # Split into sub-packages + cat CHANGES ChangeLog > changelog dh_movefiles -pplptools dh_movefiles -pplptools-dev dh_movefiles -pplptools-kde @@ -77,7 +89,7 @@ binary-arch: build install # dh_installcron dh_installman -a # dh_installinfo -# dh_undocumented + dh_undocumented -a dh_installchangelogs dh_link dh_strip -- cgit v1.2.3