mirror of
https://github.com/rsmarples/dhcpcd.git
synced 2024-11-23 18:14:09 +08:00
build: exit the SUBDIR build loop if an error is detected
This commit is contained in:
parent
d8fab20459
commit
69e88d53ad
12
Makefile
12
Makefile
@ -22,10 +22,10 @@ CLEANFILES+= *.tar.xz
|
||||
.SUFFIXES: .in
|
||||
|
||||
all: config.h
|
||||
for x in ${SUBDIRS}; do cd $$x; ${MAKE} $@; cd ..; done
|
||||
for x in ${SUBDIRS}; do cd $$x; ${MAKE} $@ || exit $$?; cd ..; done
|
||||
|
||||
depend: config.h
|
||||
for x in ${SUBDIRS}; do cd $$x; ${MAKE} $@; cd ..; done
|
||||
for x in ${SUBDIRS}; do cd $$x; ${MAKE} $@ || exit $$?; cd ..; done
|
||||
|
||||
tests:
|
||||
cd $@; ${MAKE} $@
|
||||
@ -36,17 +36,17 @@ hooks:
|
||||
cd $@; ${MAKE}
|
||||
|
||||
eginstall:
|
||||
for x in ${SUBDIRS}; do cd $$x; ${MAKE} $@; cd ..; done
|
||||
for x in ${SUBDIRS}; do cd $$x; ${MAKE} $@ || exit $$?; cd ..; done
|
||||
|
||||
install:
|
||||
for x in ${SUBDIRS}; do cd $$x; ${MAKE} $@; cd ..; done
|
||||
for x in ${SUBDIRS}; do cd $$x; ${MAKE} $@ || exit $$?; cd ..; done
|
||||
|
||||
proginstall:
|
||||
for x in ${SUBDIRS}; do cd $$x; ${MAKE} $@; cd ..; done
|
||||
for x in ${SUBDIRS}; do cd $$x; ${MAKE} $@ || exit $$?; cd ..; done
|
||||
|
||||
clean:
|
||||
rm -rf cov-int dhcpcd.xz
|
||||
for x in ${SUBDIRS} tests; do cd $$x; ${MAKE} $@; cd ..; done
|
||||
for x in ${SUBDIRS} tests; do cd $$x; ${MAKE} $@ || exit $$?; cd ..; done
|
||||
|
||||
distclean: clean
|
||||
rm -f config.h config.mk config.log \
|
||||
|
@ -45,7 +45,7 @@ CLEANFILES+= *.tar.xz
|
||||
$< > $@
|
||||
|
||||
all: ${TOP}/config.h ${PROG} ${SCRIPTS} ${MAN5} ${MAN8}
|
||||
for x in ${SUBDIRS}; do cd $$x; ${MAKE} $@; cd ..; done
|
||||
for x in ${SUBDIRS}; do cd $$x; ${MAKE} $@ || exit $$?; cd ..; done
|
||||
|
||||
dev:
|
||||
cd dev && ${MAKE}
|
||||
@ -84,7 +84,7 @@ _proginstall: ${PROG}
|
||||
${INSTALL} -d ${DESTDIR}${DBDIR}
|
||||
|
||||
proginstall: _proginstall ${EMBEDDEDINSTALL}
|
||||
for x in ${SUBDIRS}; do cd $$x; ${MAKE} $@; cd ..; done
|
||||
for x in ${SUBDIRS}; do cd $$x; ${MAKE} $@ || exit $$?; cd ..; done
|
||||
|
||||
_maninstall: ${MAN5} ${MAN8}
|
||||
${INSTALL} -d ${DESTDIR}${MANDIR}/man5
|
||||
@ -130,7 +130,7 @@ install: proginstall _maninstall _confinstall eginstall
|
||||
|
||||
clean:
|
||||
rm -f ${OBJS} ${PROG} ${PROG}.core ${CLEANFILES}
|
||||
for x in ${SUBDIRS}; do cd $$x; ${MAKE} $@; cd ..; done
|
||||
for x in ${SUBDIRS}; do cd $$x; ${MAKE} $@ || exit $$?; cd ..; done
|
||||
|
||||
distclean: clean
|
||||
rm -f .depend
|
||||
|
@ -24,7 +24,6 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#include <sys/ioctl.h>
|
||||
#include <sys/socket.h>
|
||||
|
||||
|
@ -1,16 +1,16 @@
|
||||
SUBDIRS= crypt eloop-bench
|
||||
|
||||
all:
|
||||
for x in ${SUBDIRS}; do cd $$x; ${MAKE} $@; cd ..; done
|
||||
for x in ${SUBDIRS}; do cd $$x; ${MAKE} $@ || exit $$?; cd ..; done
|
||||
|
||||
install:
|
||||
|
||||
proginstall:
|
||||
|
||||
clean:
|
||||
for x in ${SUBDIRS}; do cd $$x; ${MAKE} $@; cd ..; done
|
||||
for x in ${SUBDIRS}; do cd $$x; ${MAKE} $@ || exit $$?; cd ..; done
|
||||
|
||||
test:
|
||||
for x in ${SUBDIRS}; do cd $$x; ${MAKE} $@; cd ..; done
|
||||
for x in ${SUBDIRS}; do cd $$x; ${MAKE} $@ || exit $$?; cd ..; done
|
||||
|
||||
tests: test
|
||||
|
Loading…
Reference in New Issue
Block a user