From 9f42b0925d2fa01bde83c72cdeed0a849a69ae9f Mon Sep 17 00:00:00 2001 From: Yann Collet Date: Tue, 22 Jul 2014 17:25:35 +0100 Subject: Makefile : synchronize library version number with lz4.h - Thanks to Takayuki Matsuoka --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 45b9098..cfbaed4 100644 --- a/Makefile +++ b/Makefile @@ -33,9 +33,9 @@ # Version numbers VERSION=120 export RELEASE=r$(VERSION) -LIBVER_MAJOR=1 -LIBVER_MINOR=3 -LIBVER_PATCH=0 +LIBVER_MAJOR=`sed -n '/LZ4_VERSION_MAJOR/s/.*\s\+\([0-9]\+\).*/\1/p' < lz4.h` +LIBVER_MINOR=`sed -n '/LZ4_VERSION_MINOR/s/.*\s\+\([0-9]\+\).*/\1/p' < lz4.h` +LIBVER_PATCH=`sed -n '/LZ4_VERSION_RELEASE/s/.*\s\+\([0-9]\+\).*/\1/p' < lz4.h` LIBVER=$(LIBVER_MAJOR).$(LIBVER_MINOR).$(LIBVER_PATCH) DESTDIR= -- cgit v0.12