mirror of
https://github.com/dynup/kpatch
synced 2024-12-19 20:00:00 +00:00
f67a008478
Bump the submodule reference and modify the unit test Makefile to check all supported architectures. Signed-off-by: Joe Lawrence <joe.lawrence@redhat.com>
18 lines
475 B
Makefile
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
|