From: Andre Noll Date: Wed, 15 May 2024 00:14:25 +0000 (+0200) Subject: build: Kill GET_VERSION(). X-Git-Tag: v1.0.0~5 X-Git-Url: http://git.tue.mpg.de/?a=commitdiff_plain;h=22c16e43ed5ca8cfb2e1baf2f515dc3785c4be14;p=micoforia.git build: Kill GET_VERSION(). Just call micoforia_version() directly. --- diff --git a/Makefile b/Makefile index c214619..52998ba 100644 --- 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)"' diff --git a/micoforia.c b/micoforia.c index 6993542..9afd269 100644 --- a/micoforia.c +++ b/micoforia.c @@ -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); }