Skip to content

Commit

Permalink
fix: correct Makefile dep for integ_test rule
Browse files Browse the repository at this point in the history
  • Loading branch information
exbotanical committed Oct 2, 2024
1 parent df8371f commit 6255775
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ DEPSDIR := deps
TESTDIR := t

SRC := $(wildcard $(SRCDIR)/*.c)
TESTS := $(wildcard $(TESTDIR)/*/*.c)
SRC_NOMAIN := $(filter-out $(SRCDIR)/main.c, $(SRC))
TEST_DEPS := $(wildcard $(DEPSDIR)/tap.c/*.c)
DEPS := $(filter-out $(wildcard $(DEPSDIR)/tap.c/*), $(wildcard $(DEPSDIR)/*/*.c))
Expand All @@ -37,17 +38,17 @@ unit_test: $(UNIT_TESTS) $(DEPS) $(TEST_DEPS) $(SRC_NOMAIN)
@./$(UNIT_TARGET)
@$(MAKE) clean

integ_test: $(PROG)
integ_test: all
@./$(TESTDIR)/integ/utils/run.bash
@$(MAKE) clean

valgrind: CFLAGS += -g -O0 -DVALGRIND
valgrind: $(PROG)
valgrind: all
valgrind --leak-check=full --show-leak-kinds=all --track-origins=yes -s ./$(PROG)
@$(MAKE) clean

clean:
@rm -f $(UNIT_TARGET) $(PROG) .log*

fmt:
$(FMT) -i $(SRC) $(wildcard $(TESTDIR)/*/*.c)
$(FMT) -i $(SRC) $(TESTS)

0 comments on commit 6255775

Please sign in to comment.