aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorRobin Krahl <me@robin-krahl.de>2017-03-27 23:40:24 +0200
committerRobin Krahl <me@robin-krahl.de>2017-03-27 23:40:24 +0200
commit004fbbe648f6a13a23da01fb98db53444b0087af (patch)
treef2bfb98417478208bbe6dda1094165a1ab451a8b /Makefile
parentc57df190537a73d0cb784bfe149ff22aca884db0 (diff)
downloadsqlitepp-004fbbe648f6a13a23da01fb98db53444b0087af.tar.gz
sqlitepp-004fbbe648f6a13a23da01fb98db53444b0087af.tar.bz2
Makefile: Add version number to doxygen
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index a905f08..a455917 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,7 @@
include config.mk
+VERSION := $(VERSION_MAJOR).$(VERSION_MINOR).$(VERSION_PATCH)
+
INCLUDE_DIR := include
SOURCE_DIR := src
OBJECT_DIR := obj
@@ -12,7 +14,7 @@ SOURCE_NAMES_TEST := sqlitepp_test.cpp
TARGET_NAME_LIB := sqlitepp
TARGET_LIB_BASE := $(LIBRARY_DIR)/lib$(TARGET_NAME_LIB).so
-TARGET_LIB := $(TARGET_LIB_BASE).$(VERSION_MAJOR).$(VERSION_MINOR).$(VERSION_PATCH)
+TARGET_LIB := $(TARGET_LIB_BASE).$(VERSION)
SOURCES_LIB := $(foreach source,$(SOURCE_NAMES_LIB),$(SOURCE_DIR)/$(source))
OBJECTS_LIB := $(SOURCES_LIB:$(SOURCE_DIR)/%.cpp=$(OBJECT_DIR)/%.o)
DEPENDS_LIB := $(OBJECTS_LIB:.o=.d)
@@ -57,7 +59,7 @@ clean:
$(QUIET)$(RM) -r $(DOCUMENTATION_DIR)
doc: $(INCLUDES)
- doxygen
+ (cat Doxyfile ; echo "PROJECT_NUMBER=$(VERSION)" ) | doxygen -
memcheck: $(TARGET_TEST)
valgrind --tool=memcheck ./$(TARGET_TEST)