mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
If make -k was used and a sub-Make fails, build the rest before propagating.
This commit is contained in:
parent
5558284c08
commit
d237f529bf
11
Makefile.lib
11
Makefile.lib
@ -210,10 +210,19 @@ RULES_REC = $(addsuffix -recursive,$(RULES))
|
||||
|
||||
.PHONY: $(RULES) $(RULES_LOCAL) $(RULES_REC) $(addsuffix -default,$(RULES))
|
||||
|
||||
# The -recursive rules decend all subdirs.
|
||||
# The -recursive rules descend all subdirs.
|
||||
# If make -k was used and a sub-Make fails, then keep building the
|
||||
# remaining subdirectories, but return an error at the end.
|
||||
$(RULES_REC):
|
||||
ifneq (,$(findstring k,$(MAKEFLAGS)))
|
||||
@suberr=0; \
|
||||
$(foreach subdir,$(sort $(SUBDIRS)), \
|
||||
$(call ncmd,recmake,$(subdir),$(subst -recursive,,$@)) || suberr=1;) \
|
||||
exit $$suberr
|
||||
else
|
||||
@$(foreach subdir,$(sort $(SUBDIRS)), \
|
||||
$(call ncmd,recmake,$(subdir),$(subst -recursive,,$@)) || exit 1;)
|
||||
endif
|
||||
|
||||
# Dummy -local rules
|
||||
$(RULES_LOCAL):
|
||||
|
Loading…
Reference in New Issue
Block a user