]> git.tue.mpg.de Git - micoforia.git/commitdiff
build: Kill GET_VERSION().
authorAndre Noll <maan@tuebingen.mpg.de>
Wed, 15 May 2024 00:14:25 +0000 (02:14 +0200)
committerAndre Noll <maan@tuebingen.mpg.de>
Mon, 27 May 2024 15:25:23 +0000 (17:25 +0200)
Just call micoforia_version() directly.

Makefile
micoforia.c

index c214619e0f98f187d4eabe55920e249bbf16c8c9..52998ba48eae3f21d75b86fc67f838e9db62ba46 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -68,7 +68,6 @@ XCPPFLAGS += -DURL='"$(URL)"'
 XCPPFLAGS += -DCLONE_URL='"$(CLONE_URL)"'
 XCPPFLAGS += -DGITWEB_URL='"$(GITWEB_URL)"'
 XCPPFLAGS += -DHOME_URL='"$(HOME_URL)"'
-XCPPFLAGS += -DGET_VERSION='$(PACKAGE)_version'
 XCPPFLAGS += -DLOGLEVELS='$(LOGLEVELS)'
 XCPPFLAGS += -DLICENSE='"$(LICENSE)"'
 XCPPFLAGS += -DLICENSE_URL='"$(LICENSE_URL)"'
index 699354202debf3ab1ac640cdd3cb3e6bfd90fb19..9afd269c1d5d18c05d6b55d4c47934a0454a2b2a 100644 (file)
@@ -405,7 +405,7 @@ static void show_subcommand_summary(bool verbose)
        }
 }
 
-const char *GET_VERSION(void);
+const char *micoforia_version(void);
 static void handle_version_and_help(void)
 {
        char *help;
@@ -423,7 +423,7 @@ static void handle_version_and_help(void)
                        "Author's Home Page: " HOME_URL "\n"
                        "Send feedback to: " AUTHOR " <" EMAIL ">\n"
                        ,
-                       GET_VERSION()
+                       micoforia_version()
                );
                exit(EXIT_SUCCESS);
        }