diff --git a/Makefile b/Makefile index 19e8bdbd..9c0505f3 100644 --- a/Makefile +++ b/Makefile @@ -75,11 +75,11 @@ EXEC = tests/main $(EXEC): $(OBJS) $(CXX) $(LDFLAGS) -o $@ $^ -check: tests/main - export LSAN_OPTIONS=verbosity=2:log_threads=1 -ifeq ($(processor),$(filter $(processor),aarch64 arm64 arm armv7l)) - $(CC) $(ARCH_CFLAGS) -c -O2 sse2neon.h -endif +check: $(EXEC) + export LSAN_OPTIONS=verbosity=2:log_threads=1 && \ + ifeq ($(processor),$(filter $(processor),aarch64 arm64 arm armv7l)) + $(CC) $(ARCH_CFLAGS) -c -O2 sse2neon.h + endif $(EXEC_WRAPPER) $^ indent: @@ -87,7 +87,7 @@ indent: @if ! hash clang-format-12; then echo "clang-format-12 is required to indent"; fi clang-format-12 -i sse2neon.h tests/*.cpp tests/*.h -.PHONY: clean check format +.PHONY: clean check indent clean: $(RM) $(OBJS) $(EXEC) $(deps) sse2neon.h.gch