On Fri, Jun 04, 2010 at 03:25:34PM +0000, alexandrequessy-gu...@users.alioth.debian.org wrote:
The following commit has been merged in the master branch: commit fc0f6fe1c8b4ec22d2527b1d68905d592cab3044 Author: Alexandre Quessy <Alexandre Quessy alexan...@quessy.net> Date: Fri Jun 4 10:56:48 2010 -0400Trying to detect if makefile exists diff --git a/debian/rules b/debian/rules index 1835e02..e4e67a9 100755 --- a/debian/rules +++ b/debian/rules @@ -5,5 +5,6 @@ include /usr/share/cdbs/1/class/autotools.mk DEB_CONFIGURE_EXTRA_FLAGS = --enable-mt DEB_MAKE_CHECK_TARGET = check -DEB_MAKE_CLEAN_TARGET = [ ! -f Makefile ] || $(MAKE) distclean + +if [ -f Makefile ]; then DEB_MAKE_CLEAN_TARGET = distclean; fi
debian/rules is a make file, not a shell script. Only rules: sections, indented by a tab, are treated as shell code (and only after expanding make variables).
The following should work: DEB_MAKE_CLEAN_TARGET = $(if $(glob Makefile),distclean) - Jonas -- * Jonas Smedegaard - idealist & Internet-arkitekt * Tlf.: +45 40843136 Website: http://dr.jones.dk/ [x] quote me freely [ ] ask before reusing [ ] keep private
signature.asc
Description: Digital signature
_______________________________________________ pkg-multimedia-maintainers mailing list pkg-multimedia-maintainers@lists.alioth.debian.org http://lists.alioth.debian.org/mailman/listinfo/pkg-multimedia-maintainers