2018-04-26 13:24:40 +00:00
|
|
|
ARCH = $(shell uname -m)
|
|
|
|
OBJDIR ?= objs/$(ARCH)
|
2018-03-20 19:39:36 +00:00
|
|
|
|
2018-04-26 13:24:40 +00:00
|
|
|
.PHONY: all clean
|
2018-03-20 19:39:36 +00:00
|
|
|
|
2018-04-26 13:24:40 +00:00
|
|
|
all: Makefile.include
|
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
|
|
|
$(MAKE) -C $(OBJDIR)
|
|
|
|
|
|
|
|
clean: Makefile.include
|
2018-06-04 11:04:18 +00:00
|
|
|
if [ -d $(OBJDIR) ]; then $(MAKE) -C $(OBJDIR) clean; fi
|