[hackers] [libgrapheme] Move $VERSION from config.mk to Makefile and group variables || Laslo Hunhold
commit b93746402103a3cff057ad88c083bf30b841574f
Author: Laslo Hunhold <dev_AT_frign.de>
AuthorDate: Wed Sep 7 22:32:28 2022 +0200
Commit: Laslo Hunhold <dev_AT_frign.de>
CommitDate: Wed Sep 7 22:37:32 2022 +0200
Move $VERSION from config.mk to Makefile and group variables
Same as with $MAN_DATE and $UNICODE_VERSIONS, which are parameters that
are not really meant to be changed from the outside depending on the
build system/architecture, it does not make much sense to place the
VERSION variable explicitly within config.mk even though this has been
the usual approach in suckless projects (cargo-cult?).
Given the order of specification it will still always be possible to
override VERSION from config.mk.
Signed-off-by: Laslo Hunhold <dev_AT_frign.de>
diff --git a/Makefile b/Makefile
index beba207..653175f 100644
--- a/Makefile
+++ b/Makefile
_AT_@ -2,10 +2,12 @@
# libgrapheme - unicode string library
.POSIX:
-include config.mk
-
+VERSION = 1
+MAN_DATE = 2022-09-07
UNICODE_VERSION = 14.0.0
+include config.mk
+
BENCHMARK =\
benchmark/case\
benchmark/character\
_AT_@ -58,8 +60,6 @@ TEST =\
test/utf8-encode\
test/word\
-MAN_DATE = 2022-08-28
-
MAN_TEMPLATE =\
man/template/next_break.sh\
man/template/to_case.sh\
diff --git a/config.mk b/config.mk
index 4b30699..38b0b4b 100644
--- a/config.mk
+++ b/config.mk
_AT_@ -1,6 +1,3 @@
-# libgrapheme version
-VERSION = 1
-
# Customize below to fit your system
# paths
Received on Wed Sep 07 2022 - 22:37:39 CEST
This archive was generated by hypermail 2.3.0
: Wed Sep 07 2022 - 22:48:37 CEST