mirror of
https://github.com/dynup/kpatch
synced 2024-12-22 21:22:07 +00:00
20b7ab02c4
"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>
14 lines
380 B
Makefile
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
|