On Wed, Oct 27, 2010 at 08:03:37PM +0000, ceros-gu...@users.alioth.debian.org 
wrote:
   Force CFLAGS to be set by user via DEB_CFLAGS instead of by 
dpkg-buildpackage.


+# Set CFLAGS from DEB_CFLAGS if defined, otherwise simply add -Wall
+CFLAGS = $(shell test -z "$$DEB_CFLAGS" || echo "$$DEB_CFLAGS")
+ifeq (,$(CFLAGS))
+  CFLAGS = -Wall
+endif

If I understand your intention correctly, this is more elegant:

CFLAGS = $(or $(DEB_CFLAGS),-Wall)


 - Jonas

--
 * Jonas Smedegaard - idealist & Internet-arkitekt
 * Tlf.: +45 40843136  Website: http://dr.jones.dk/

 [x] quote me freely  [ ] ask before reusing  [ ] keep private

Attachment: 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

Reply via email to