commit b93746402103a3cff057ad88c083bf30b841574f
Author:     Laslo Hunhold <[email protected]>
AuthorDate: Wed Sep 7 22:32:28 2022 +0200
Commit:     Laslo Hunhold <[email protected]>
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 <[email protected]>

diff --git a/Makefile b/Makefile
index beba207..653175f 100644
--- a/Makefile
+++ b/Makefile
@@ -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\
@@ -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
@@ -1,6 +1,3 @@
-# libgrapheme version
-VERSION = 1
-
 # Customize below to fit your system
 
 # paths

Reply via email to