commit | dec9ffea1ef05604ec79b8fbd6abc7a7c72393f6 | [log] [tgz] |
---|---|---|
author | Szabolcs Nagy <szabolcs.nagy@arm.com> | Tue Nov 26 11:52:25 2019 +0000 |
committer | Szabolcs Nagy <szabolcs.nagy@arm.com> | Tue Nov 26 12:15:48 2019 +0000 |
tree | f7e234004e26109b1c8b8d3dd2653e4632a03a31 | |
parent | 1fd2aaae0fcb13f3a53be8de50b68d269145a0a4 [diff] |
Makefile tweak for better subproject handling Don't include the makefile fragments of subprojects that aren't built. With this the build fails more reasonably when SUBS is set incorrectly.
diff --git a/Makefile b/Makefile index c661b33..dee6134 100644 --- a/Makefile +++ b/Makefile
@@ -30,8 +30,7 @@ -include config.mk -include $(srcdir)/math/Dir.mk -include $(srcdir)/string/Dir.mk +$(foreach sub,$(SUBS),$(eval include $(srcdir)/$(sub)/Dir.mk)) # Required targets of subproject foo: # all-foo