kpatch/test/unit/Makefile
Joe Lawrence f67a008478 test/unit: update for cross-arch testing
Bump the submodule reference and modify the unit test Makefile to check
all supported architectures.

Signed-off-by: Joe Lawrence <joe.lawrence@redhat.com>
2022-02-02 17:36:24 -05:00

18 lines
475 B
Makefile

ARCHES ?= ppc64le x86_64
.PHONY: all clean submodule-check
all: $(addsuffix -test,$(ARCHES))
clean: $(addsuffix -clean,$(ARCHES))
submodule-check:
@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"
%-test: Makefile.include submodule-check
$(MAKE) -C objs/$*
%-clean: Makefile.include
if [ -d objs/$* ]; then $(MAKE) -C objs/$* clean; fi