mirror of
https://github.com/szymon-jozef/static-site-generator.git
synced 2026-09-07 12:10:42 +02:00
updated makefile for new tests
This commit is contained in:
13
src/makefile
13
src/makefile
@@ -2,6 +2,7 @@ CXX = g++
|
|||||||
CXXFLAGS = -std=c++17 -Wall
|
CXXFLAGS = -std=c++17 -Wall
|
||||||
TEST_LIBS = -lmd4c-html -lCatch2Main -lCatch2
|
TEST_LIBS = -lmd4c-html -lCatch2Main -lCatch2
|
||||||
LIBS = -lmd4c-html
|
LIBS = -lmd4c-html
|
||||||
|
TEST_DIR = tests
|
||||||
|
|
||||||
all: blog
|
all: blog
|
||||||
|
|
||||||
@@ -20,14 +21,14 @@ utils.o: utils.cpp utils.hpp
|
|||||||
markdown.o: markdown.cpp markdown.hpp
|
markdown.o: markdown.cpp markdown.hpp
|
||||||
$(CXX) $(CXXFLAGS) -c markdown.cpp
|
$(CXX) $(CXXFLAGS) -c markdown.cpp
|
||||||
|
|
||||||
tests: tests.o config.o utils.o markdown.o
|
tests.o: $(TEST_DIR)/tests.cpp config.hpp
|
||||||
g++ -std=c++17 -Wall tests.o config.o utils.o markdown.o -o tests $(TEST_LIBS)
|
$(CXX) $(CXXFLAGS) -c $(TEST_DIR)/tests.cpp
|
||||||
|
|
||||||
tests.o: tests.cpp config.hpp
|
tests: tests.o config.o utils.o markdown.o
|
||||||
$(CXX) $(CXXFLAGS) -c tests.cpp
|
g++ -std=c++17 -Wall tests.o config.o utils.o markdown.o -o $(TEST_DIR)/tests $(TEST_LIBS)
|
||||||
|
|
||||||
check: tests
|
check: tests
|
||||||
./tests
|
$(TEST_DIR)/tests
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f *.o blog tests
|
rm -f *.o $(TEST_DIR)/*.o blog $(TEST_DIR)/tests
|
||||||
|
|||||||
Reference in New Issue
Block a user