From af4a39603c12e9a68e96df0cd3df6193d7f63f9c Mon Sep 17 00:00:00 2001 From: Wilson Snyder Date: Sun, 4 Aug 2019 20:20:29 -0400 Subject: [PATCH] Makefile: Run hello world before other examples. --- Makefile.in | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Makefile.in b/Makefile.in index d96ff5a41..4670fba65 100644 --- a/Makefile.in +++ b/Makefile.in @@ -180,6 +180,12 @@ INST_PROJ_BIN_FILES = \ DISTFILES := $(DISTFILES_INC) +EXAMPLES_FIRST = \ + examples/hello_world_c \ + examples/hello_world_sc \ + +EXAMPLES = $(EXAMPLES_FIRST) $(filter-out $(EXAMPLES_FIRST), $(sort $(wildcard examples/*))) + ifeq ($(OBJCACHE_JOBS),) ifneq ($(OBJCACHE_HOSTS),) export OBJCACHE_JOBS := -j $(shell objcache --jobs "$(OBJCACHE_HOSTS)") @@ -226,7 +232,7 @@ test_regress: all_nomsg $(MAKE) -C test_regress examples: all_nomsg - for p in examples/* ; do \ + for p in $(EXAMPLES) ; do \ $(MAKE) -C $$p VERILATOR_ROOT=`pwd` || exit 10; \ done