From 004fbbe648f6a13a23da01fb98db53444b0087af Mon Sep 17 00:00:00 2001 From: Robin Krahl Date: Mon, 27 Mar 2017 23:40:24 +0200 Subject: Makefile: Add version number to doxygen --- Makefile | 6 ++++-- 1 file 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) -- cgit v1.2.3