[linux-lvm] Make doesn't abort on error

Russell Coker russell at coker.com.au
Sat Dec 16 15:19:02 UTC 2000

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...

        @for d in $(SUBDIRS); \
         do \
            if [ "$$d" = "." ]; \
            then \
               $(MAKE) all_this; \
            else \
               $(MAKE) -C $$d all; \
            fi; \

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

More information about the linux-lvm mailing list