1
0
Fork 0

Makefile: Add 'tests' target, depend on headers too to rebuild on changes of those

Dieser Commit ist enthalten in:
Albert S. 2022-01-29 23:39:36 +01:00
Ursprung e7a5ba7f7f
Commit 8cfb73568a
1 geänderte Dateien mit 6 neuen und 4 gelöschten Zeilen

Datei anzeigen

@ -3,19 +3,21 @@ bindir = $(prefix)/bin
CFLAGS = -std=c99 -Wall -Wextra -pedantic
CXXFLAGS = -std=c++20 -Wall -Wextra -pedantic
.DEFAULT_GOAL := test
.DEFAULT_GOAL := tests
clean:
rm -f test testcpp
test: test.c
test: test.c exile.h
$(CC) test.c -g $(CFLAGS) -o test
testcpp: test.cpp
testcpp: test.cpp exile.h exile.hpp
$(CXX) test.cpp -g $(CXXFLAGS) -o testcpp
check: test
tests: test testcpp
check: tests
./test.sh
.PHONY: check