Makefile version automatically follows zstd.h
This commit is contained in:
parent
155fbbfe25
commit
5f9f98768a
2
Makefile
2
Makefile
@ -31,8 +31,6 @@
|
|||||||
# - Public forum : https://groups.google.com/forum/#!forum/lz4c
|
# - Public forum : https://groups.google.com/forum/#!forum/lz4c
|
||||||
# ################################################################
|
# ################################################################
|
||||||
|
|
||||||
# Version number
|
|
||||||
export VERSION := 0.4.5
|
|
||||||
|
|
||||||
PRGDIR = programs
|
PRGDIR = programs
|
||||||
ZSTDDIR = lib
|
ZSTDDIR = lib
|
||||||
|
4
NEWS
4
NEWS
@ -1,3 +1,7 @@
|
|||||||
|
v0.4.6
|
||||||
|
fix : fast compression mode on Windows
|
||||||
|
Improved : high compression mode on repetitive data
|
||||||
|
|
||||||
v0.4.5
|
v0.4.5
|
||||||
new : -m/--multiple : compress/decompress multiple files
|
new : -m/--multiple : compress/decompress multiple files
|
||||||
|
|
||||||
|
17
lib/Makefile
17
lib/Makefile
@ -32,11 +32,15 @@
|
|||||||
# ################################################################
|
# ################################################################
|
||||||
|
|
||||||
# Version numbers
|
# Version numbers
|
||||||
LIBVER_MAJOR=`sed -n '/define ZSTD_VERSION_MAJOR/s/.*[[:blank:]]\([0-9][0-9]*\).*/\1/p' < zstd.h`
|
LIBVER_MAJOR_SCRIPT:=`sed -n '/define ZSTD_VERSION_MAJOR/s/.*[[:blank:]]\([0-9][0-9]*\).*/\1/p' < zstd.h`
|
||||||
LIBVER_MINOR=`sed -n '/define ZSTD_VERSION_MINOR/s/.*[[:blank:]]\([0-9][0-9]*\).*/\1/p' < zstd.h`
|
LIBVER_MINOR_SCRIPT:=`sed -n '/define ZSTD_VERSION_MINOR/s/.*[[:blank:]]\([0-9][0-9]*\).*/\1/p' < zstd.h`
|
||||||
LIBVER_PATCH=`sed -n '/define ZSTD_VERSION_RELEASE/s/.*[[:blank:]]\([0-9][0-9]*\).*/\1/p' < zstd.h`
|
LIBVER_PATCH_SCRIPT:=`sed -n '/define ZSTD_VERSION_RELEASE/s/.*[[:blank:]]\([0-9][0-9]*\).*/\1/p' < zstd.h`
|
||||||
LIBVER = $(LIBVER_MAJOR).$(LIBVER_MINOR).$(LIBVER_PATCH)
|
LIBVER_SCRIPT:= $(LIBVER_MAJOR_SCRIPT).$(LIBVER_MINOR_SCRIPT).$(LIBVER_PATCH_SCRIPT)
|
||||||
VERSION?= $(LIBVER)
|
LIBVER_MAJOR := $(shell echo $(LIBVER_MAJOR_SCRIPT))
|
||||||
|
LIBVER_MINOR := $(shell echo $(LIBVER_MINOR_SCRIPT))
|
||||||
|
LIBVER_PATCH := $(shell echo $(LIBVER_PATCH_SCRIPT))
|
||||||
|
LIBVER := $(shell echo $(LIBVER_SCRIPT))
|
||||||
|
VERSION:= $(LIBVER)
|
||||||
|
|
||||||
DESTDIR?=
|
DESTDIR?=
|
||||||
PREFIX ?= /usr/local
|
PREFIX ?= /usr/local
|
||||||
@ -98,7 +102,8 @@ clean:
|
|||||||
#make install is validated only for Linux, OSX, kFreeBSD and Hurd targets
|
#make install is validated only for Linux, OSX, kFreeBSD and Hurd targets
|
||||||
ifneq (,$(filter $(shell uname),Linux Darwin GNU/kFreeBSD GNU))
|
ifneq (,$(filter $(shell uname),Linux Darwin GNU/kFreeBSD GNU))
|
||||||
|
|
||||||
libzstd.pc: libzstd.pc.in Makefile
|
libzstd.pc:
|
||||||
|
libzstd.pc: libzstd.pc.in
|
||||||
@echo creating pkgconfig
|
@echo creating pkgconfig
|
||||||
@sed -e 's|@PREFIX@|$(PREFIX)|' \
|
@sed -e 's|@PREFIX@|$(PREFIX)|' \
|
||||||
-e 's|@LIBDIR@|$(LIBDIR)|' \
|
-e 's|@LIBDIR@|$(LIBDIR)|' \
|
||||||
|
@ -30,7 +30,16 @@
|
|||||||
# fullbench32: Same as fullbench, but forced to compile in 32-bits mode
|
# fullbench32: Same as fullbench, but forced to compile in 32-bits mode
|
||||||
# ##########################################################################
|
# ##########################################################################
|
||||||
|
|
||||||
VERSION?= 0.4.5
|
# Version numbers
|
||||||
|
LIBVER_MAJOR_SCRIPT:=`sed -n '/define ZSTD_VERSION_MAJOR/s/.*[[:blank:]]\([0-9][0-9]*\).*/\1/p' < ../lib/zstd.h`
|
||||||
|
LIBVER_MINOR_SCRIPT:=`sed -n '/define ZSTD_VERSION_MINOR/s/.*[[:blank:]]\([0-9][0-9]*\).*/\1/p' < ../lib/zstd.h`
|
||||||
|
LIBVER_PATCH_SCRIPT:=`sed -n '/define ZSTD_VERSION_RELEASE/s/.*[[:blank:]]\([0-9][0-9]*\).*/\1/p' < ../lib/zstd.h`
|
||||||
|
LIBVER_SCRIPT:= $(LIBVER_MAJOR_SCRIPT).$(LIBVER_MINOR_SCRIPT).$(LIBVER_PATCH_SCRIPT)
|
||||||
|
LIBVER_MAJOR := $(shell echo $(LIBVER_MAJOR_SCRIPT))
|
||||||
|
LIBVER_MINOR := $(shell echo $(LIBVER_MINOR_SCRIPT))
|
||||||
|
LIBVER_PATCH := $(shell echo $(LIBVER_PATCH_SCRIPT))
|
||||||
|
LIBVER := $(shell echo $(LIBVER_SCRIPT))
|
||||||
|
VERSION:= $(LIBVER)
|
||||||
|
|
||||||
DESTDIR?=
|
DESTDIR?=
|
||||||
PREFIX ?= /usr/local
|
PREFIX ?= /usr/local
|
||||||
|
Loading…
Reference in New Issue
Block a user