[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [AUCTeX-devel] Re: [AUCTeX-diffs] Changes to auctex/Makefile.in
From: |
Ralf Angeli |
Subject: |
Re: [AUCTeX-devel] Re: [AUCTeX-diffs] Changes to auctex/Makefile.in |
Date: |
Thu, 09 Jun 2005 16:51:14 +0200 |
User-agent: |
Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux) |
* David Kastrup (2005-06-09) writes:
> Ralf Angeli <address@hidden> writes:
>
>> +DESCEND=if test -n "$(subdirs)"; then OLDPWD="`pwd`";for i in
>> ""$(subdirs);do cd $$i;echo "Descending into `pwd`";$(MAKE)
>> 'DESTDIR=$(DESTDIR)' PACKAGE=$(PACKAGE) $@ || exit $$?;cd $$OLDPWD;echo
>> "Ascending into $$OLDPWD";done;fi
>>
>
> One note here: avoid "if" in Makefile rules, rather use the
> short-circuit operators || and &&. The reason is that not all Bourne
> shells return "success" for "if false", causing "make" to bomb out.
I guess the something like the following should work.
DESCEND=test -n "$(subdirs)" && (OLDPWD="`pwd`";for i in ""$(subdirs);do cd
$$i;echo "Descending into `pwd`";$(MAKE) 'DESTDIR=$(DESTDIR)'
PACKAGE=$(PACKAGE) $@ || exit $$?;cd $$OLDPWD;echo "Ascending into
$$OLDPWD";done)
> The alternative is to put in
>
> else :
>
> at the end. Yes, this is idiotic.
"else :"? Never heard of that.
--
Ralf