2022-01-28 14:15:32 +00:00
|
|
|
ARCHES ?= ppc64le x86_64
|
2018-03-20 19:39:36 +00:00
|
|
|
|
2022-01-28 14:15:32 +00:00
|
|
|
.PHONY: all clean submodule-check
|
2018-03-20 19:39:36 +00:00
|
|
|
|
2022-01-28 14:15:32 +00:00
|
|
|
all: $(addsuffix -test,$(ARCHES))
|
|
|
|
clean: $(addsuffix -clean,$(ARCHES))
|
|
|
|
|
|
|
|
submodule-check:
|
2019-07-15 23:49:00 +00:00
|
|
|
@cd $(shell git rev-parse --show-toplevel) && \
|
|
|
|
git diff-index --quiet HEAD test/unit/objs || \
|
|
|
|
echo -e "\nWARNING: unit tests are out of date - run \"git submodule update\"\n"
|
2018-04-26 13:24:40 +00:00
|
|
|
|
2022-01-28 14:15:32 +00:00
|
|
|
%-test: Makefile.include submodule-check
|
|
|
|
$(MAKE) -C objs/$*
|
|
|
|
|
|
|
|
%-clean: Makefile.include
|
|
|
|
if [ -d objs/$* ]; then $(MAKE) -C objs/$* clean; fi
|