aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorRobin Krahl <me@robin-krahl.de>2017-03-23 23:55:33 +0100
committerRobin Krahl <me@robin-krahl.de>2017-03-23 23:56:44 +0100
commit53e470c8371e986622079355a5f1ef4c1832f310 (patch)
tree34cede39b94158047b20a4f9cbb411ac390ddff9 /Makefile
parent01661c4231d778d9e3779b432306aea53c3e61de (diff)
downloadsqlitepp-53e470c8371e986622079355a5f1ef4c1832f310.tar.gz
sqlitepp-53e470c8371e986622079355a5f1ef4c1832f310.tar.bz2
Makefile: Add test target to run sqlitepp_test
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 3501abd..5c534ee 100644
--- a/Makefile
+++ b/Makefile
@@ -36,7 +36,7 @@ else
QUIET := @
endif
-.PHONY = all clean doc
+.PHONY = all clean doc test
all: $(TARGETS)
@@ -53,6 +53,9 @@ clean:
doc: $(INCLUDES)
doxygen
+test: $(TARGET_TEST)
+ LD_LIBRARY_PATH=$(LIBRARY_DIR) ./$(TARGET_TEST)
+
$(TARGET_LIB): $(OBJECTS_LIB)
$(info (CXX) $@)
$(QUIET)mkdir -p $(LIBRARY_DIR)