mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
Abort compilation as soon as one of the recursive targets is failing.
Fixes: 65b9fc442c ("genprotimg: introduce new tool for the creation of PV images")
Signed-off-by: Marc Hartmayer <mhartmay@linux.ibm.com>
Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
28 lines
766 B
Makefile
28 lines
766 B
Makefile
# Common definitions
|
|
include ../common.mak
|
|
|
|
.DEFAULT_GOAL := all
|
|
|
|
PKGDATADIR := "$(DESTDIR)$(TOOLS_DATADIR)/genprotimg"
|
|
TESTS :=
|
|
SUBDIRS := boot src man
|
|
RECURSIVE_TARGETS := all-recursive install-recursive clean-recursive
|
|
|
|
all: all-recursive
|
|
|
|
install: all install-recursive
|
|
$(INSTALL) -d -m 755 "$(PKGDATADIR)"
|
|
$(INSTALL) -g $(GROUP) -o $(OWNER) -m 644 boot/stage3a.bin "$(PKGDATADIR)"
|
|
$(INSTALL) -g $(GROUP) -o $(OWNER) -m 644 boot/stage3b_reloc.bin "$(PKGDATADIR)"
|
|
$(INSTALL) -g $(GROUP) -o $(OWNER) -m 755 samples/check_hostkeydoc "$(PKGDATADIR)"
|
|
|
|
clean: clean-recursive
|
|
|
|
$(RECURSIVE_TARGETS):
|
|
@target=`echo $@ |sed s/-recursive//`; \
|
|
for d in $(SUBDIRS); do \
|
|
$(MAKE) -C $$d $$target || exit 1; \
|
|
done
|
|
|
|
.PHONY: all install clean $(RECURSIVE_TARGETS)
|