* [linux-lvm] Make doesn't abort on error
@ 2000-12-16 15:19 Russell Coker
2000-12-17 10:01 ` Luca Berra
0 siblings, 1 reply; 2+ messages in thread
From: Russell Coker @ 2000-12-16 15:19 UTC (permalink / raw)
To: linux-lvm
ln -s liblvm.so.0.8final liblvm.so
ln: `liblvm.so': File exists
make[4]: *** [liblvm.so.0.8final] Error 1
make[4]: Leaving directory `/home/rjc/debian/LVM/lvm-0.8.1-0/tools/lib'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/home/rjc/debian/LVM/lvm-0.8.1-0/tools/lib'
make[3]: Entering directory `/home/rjc/debian/LVM/lvm-0.8.1-0/tools/man8'
make[4]: Entering directory `/home/rjc/debian/LVM/lvm-0.8.1-0/tools/man8'
Above is the error condition that make isn't detecting. I've changed the
makefiles to use sonames so I can have multiple versions installed with ease
(I'll send the patch here when it's working - hopefully within 24 hours
otherwise maybe after Christmas).
Below is the code from make.tmpl. For some reason when the "make -c
tools/lib all" fails it doesn't result in compilation aborting. Perhaps
someone who knows make and shell scripting better than I can advise...
all:
@for d in $(SUBDIRS); \
do \
if [ "$$d" = "." ]; \
then \
$(MAKE) all_this; \
else \
$(MAKE) -C $$d all; \
fi; \
done
--
http://www.coker.com.au/bonnie++/ Bonnie++ hard drive benchmark
http://www.coker.com.au/postal/ Postal SMTP/POP benchmark
http://www.coker.com.au/projects.html Projects I am working on
http://www.coker.com.au/~russell/ My home page
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [linux-lvm] Make doesn't abort on error
2000-12-16 15:19 [linux-lvm] Make doesn't abort on error Russell Coker
@ 2000-12-17 10:01 ` Luca Berra
0 siblings, 0 replies; 2+ messages in thread
From: Luca Berra @ 2000-12-17 10:01 UTC (permalink / raw)
To: linux-lvm
On Sat, Dec 16, 2000 at 04:19:02PM +0100, Russell Coker wrote:
> Above is the error condition that make isn't detecting. I've changed the
> makefiles to use sonames so I can have multiple versions installed with ease
> (I'll send the patch here when it's working - hopefully within 24 hours
> otherwise maybe after Christmas).
i already posted such a patch
> Below is the code from make.tmpl. For some reason when the "make -c
> tools/lib all" fails it doesn't result in compilation aborting. Perhaps
> someone who knows make and shell scripting better than I can advise...
>
> all:
> @for d in $(SUBDIRS); \
> do \
> if [ "$$d" = "." ]; \
> then \
> $(MAKE) all_this; \
> else \
> $(MAKE) -C $$d all; \
> fi; \
> done
make checks output of the command it issues, in this case the shell that runs
the for loop, since the for loop has no error checking make does not complain.
If you want make to exit you should either recode the for loop or do something
like this:
--- --- --- --- --- ---
all: $(SUBDIRS)
$(SUBDIRS): dummy
$(MAKE) -C $@
dummy:
--- --- --- --- --- ---
L.
--
Luca Berra -- bluca@comedia.it
Communication Media & Services S.r.l.
/"\
\ / ASCII RIBBON CAMPAIGN
X AGAINST HTML MAIL
/ \
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2000-12-17 10:01 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-12-16 15:19 [linux-lvm] Make doesn't abort on error Russell Coker
2000-12-17 10:01 ` Luca Berra
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.