kpatch/test/unit/Makefile
Josh Poimboeuf 20b7ab02c4 test/unit: Don't automatically rebase submodule
"make unit" automatically rebases the submodule, which causes a lot of
surprises.  Instead, just print a warning if it's out of date.

Signed-off-by: Josh Poimboeuf <jpoimboe@redhat.com>
2019-07-15 18:49:00 -05:00

14 lines
380 B
Makefile

ARCH = $(shell uname -m)
OBJDIR ?= objs/$(ARCH)
.PHONY: all clean
all: Makefile.include
@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"
$(MAKE) -C $(OBJDIR)
clean: Makefile.include
if [ -d $(OBJDIR) ]; then $(MAKE) -C $(OBJDIR) clean; fi