From 8209a7d03d53ae2ec70256bc19479474d663fead Mon Sep 17 00:00:00 2001 From: katherine Date: Mon, 20 May 2019 03:18:40 -0700 Subject: improve generated makefile --- src/opt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/opt.c') diff --git a/src/opt.c b/src/opt.c index 0f70293..ac6832e 100644 --- a/src/opt.c +++ b/src/opt.c @@ -1,3 +1,4 @@ +#include "version.h" #include "opt.h" #include "../reqs/simple-opt/simple-opt.h" @@ -21,7 +22,6 @@ static struct simple_opt options[] = { void opt_parse(int argc, char **argv) { struct simple_opt_result result; - const char version[] = "confconf develop"; result = simple_opt_parse(argc, argv, options); @@ -42,7 +42,7 @@ void opt_parse(int argc, char **argv) /* version */ if (options[1].was_seen) { - puts(version); + puts(VERSION); exit(EXIT_SUCCESS); } } -- cgit v1.2.3