Skip to content

Commit

Permalink
Ensure a failing submake causes toplevel make failure.
Browse files Browse the repository at this point in the history
  • Loading branch information
rtamalin committed Aug 14, 2024
1 parent 8f1789f commit fb07ede
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ TARGETS = fmt vet build build-only clean test test-clean test-verbose tidy
.PHONY: $(TARGETS)

$(TARGETS):
$(foreach subdir, $(SUBDIRS), $(MAKE) -C $(subdir) $@;)
$(foreach subdir, $(SUBDIRS), $(MAKE) -C $(subdir) $@ || exit 1;)
else
include Makefile.golang
endif

0 comments on commit fb07ede

Please sign in to comment.