mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
19 lines
358 B
Makefile
19 lines
358 B
Makefile
CXX=g++
|
|
INC=-I ../lib
|
|
LIB=-L ../target/debug
|
|
RPATH=-Wl,-rpath,../target/debug
|
|
|
|
TESTS = uuid.cpp
|
|
|
|
.PHONY: all test
|
|
|
|
all: test
|
|
|
|
test: doctest
|
|
@./doctest --no-version --no-intro
|
|
|
|
%.o: %.cpp ../lib/taskchampion.h
|
|
$(CXX) $(INC) -c $< -o $@
|
|
|
|
doctest: doctest.o $(subst .cpp,.o,$(TESTS))
|
|
$(CXX) $(LIB) $(RPATH) $< $(subst .cpp,.o,$(TESTS)) -ltaskchampion -o $@
|