[SCM] scenic packaging branch, master, updated. debian/0.5.11-1-14-g9636a98
Jonas Smedegaard
dr at jones.dk
Fri Jun 4 22:30:37 UTC 2010
On Fri, Jun 04, 2010 at 03:25:34PM +0000, alexandrequessy-guest at users.alioth.debian.org wrote:
>The following commit has been merged in the master branch:
>commit fc0f6fe1c8b4ec22d2527b1d68905d592cab3044
>Author: Alexandre Quessy <Alexandre Quessy alexandre at quessy.net>
>Date: Fri Jun 4 10:56:48 2010 -0400
>
> Trying 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-multimedia-maintainers/attachments/20100605/e598a6f6/attachment.pgp>
More information about the pkg-multimedia-maintainers
mailing list