diff options
author | Robin Krahl <me@robin-krahl.de> | 2017-03-27 23:40:24 +0200 |
---|---|---|
committer | Robin Krahl <me@robin-krahl.de> | 2017-03-27 23:40:24 +0200 |
commit | 004fbbe648f6a13a23da01fb98db53444b0087af (patch) | |
tree | f2bfb98417478208bbe6dda1094165a1ab451a8b | |
parent | c57df190537a73d0cb784bfe149ff22aca884db0 (diff) | |
download | sqlitepp-004fbbe648f6a13a23da01fb98db53444b0087af.tar.gz sqlitepp-004fbbe648f6a13a23da01fb98db53444b0087af.tar.bz2 |
Makefile: Add version number to doxygen
-rw-r--r-- | Makefile | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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) |