Re: ifeq in an if statement

2008-01-27 Thread Bas Wijnen
On Sun, Jan 27, 2008 at 01:20:45AM +0100, Laszlo Boszormenyi wrote: > If I add findstring like: > @if [ -f $(GRADM_PAM) ] ; then \ > echo "Installing gradm_pam..." ; \ > $(INSTALL) -m 4755 $(GRADM_PAM) $(DESTDIR)/sbin ; \ > ifeq (,$(findstring nostrip,$(DEB_B

Re: ifeq in an if statement

2008-01-26 Thread Eric Cooper
On Sun, Jan 27, 2008 at 01:20:45AM +0100, Laszlo Boszormenyi wrote: > In one package I would like to prevent some binary being strip-ped if > DEB_BUILD_OPTIONS instruct so. How about using the conditional to set STRIP = /bin/true if the nostrip option is present. Then you don't have to clutter

ifeq in an if statement

2008-01-26 Thread Laszlo Boszormenyi
Hi, In one package I would like to prevent some binary being strip-ped if DEB_BUILD_OPTIONS instruct so. It's fine if the strip line is: @$(STRIP) $(DESTDIR)/sbin/$(GRADM_BIN) I add the following: ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) @$(STRIP) $(DESTDIR)/sbin/$(GRADM_