From: Bdale Garbee Date: Sun, 15 Feb 2009 19:57:34 +0000 (-0700) Subject: clean up rules file handling of autoconf files, etc X-Git-Tag: debian/2.6.1p1-1~30 X-Git-Url: https://git.gag.com/?p=debian%2Famanda;a=commitdiff_plain;h=f3e6f54c58fed38a5ea5247eeb6c297e5f7e6c42 clean up rules file handling of autoconf files, etc --- diff --git a/debian/control b/debian/control index bac41f4..52c9e4f 100644 --- a/debian/control +++ b/debian/control @@ -2,7 +2,7 @@ Source: amanda Section: utils Priority: optional Maintainer: Bdale Garbee -Build-Depends: debhelper (>= 5), dump, gnuplot, libncurses5-dev, libreadline5-dev | libreadline-dev, libtool, flex, perl, smbclient, mailx, lpr, mtx, xfsdump, po-debconf +Build-Depends: debhelper (>= 5), dump, gnuplot, libncurses5-dev, libreadline5-dev | libreadline-dev, libtool, flex, perl, smbclient, mailx, lpr, mtx, xfsdump, po-debconf, autotools-dev Standards-Version: 3.8.0 Package: amanda-common diff --git a/debian/rules b/debian/rules index 61e9217..6de93d8 100755 --- a/debian/rules +++ b/debian/rules @@ -12,9 +12,12 @@ r=$(shell pwd)/debian/amanda-common s=$(shell pwd)/debian/amanda-server c=$(shell pwd)/debian/amanda-client -build: build-stamp -build-stamp: /sbin/dump /usr/bin/smbclient debian/po/templates.pot +configure: configure-stamp +configure-stamp: dh_testdir + # pick up latest config files provided by autotools-dev + cp -f /usr/share/misc/config.sub config/config.sub + cp -f /usr/share/misc/config.guess config/config.guess # automake --foreign # autoconf -l config MAILER=/usr/bin/mail \ @@ -33,6 +36,11 @@ build-stamp: /sbin/dump /usr/bin/smbclient debian/po/templates.pot --with-ssh-security \ --with-bsdtcp-security --with-bsdudp-security touch missing + touch configure-stamp + +build: build-stamp +build-stamp: configure-stamp + dh_testdir MAILER=/usr/bin/mail make CFLAGS="-O2 -g -Wall \ -DAMANDATES_FILE='\"/var/lib/amanda/amandates\"' \ -DIGNORE_TAR_ERRORS " @@ -43,14 +51,8 @@ clean: dh_testroot [ ! -f Makefile ] || make clean [ ! -f Makefile ] || make distclean - -rm -f build-stamp missing config/config.h common-src/genversion + -rm -f build-stamp configure-stamp missing config/config.h common-src/genversion -find . -type d -name .deps -exec rm -rf {} \; - - -test -r /usr/share/misc/config.sub && \ - cp -f /usr/share/misc/config.sub config/config.sub - -test -r /usr/share/misc/config.guess && \ - cp -f /usr/share/misc/config.guess config/config.guess - dh_clean # call this before packaging for upload when updating template English text @@ -58,10 +60,8 @@ updatepo: -rm -f debian/po/templates.pot debconf-updatepo -# Build architecture-independent files here. binary-indep: build -# Build architecture-dependent files here. binary-arch: build dh_testdir dh_testroot @@ -130,8 +130,5 @@ binary-arch: build source diff: @echo >&2 'source and diff are obsolete - use dpkg-source -b'; false -debian/po/templates.pot: debian/templates - @debconf-updatepo - binary: binary-indep binary-arch .PHONY: build clean binary-indep binary-arch binary