diff options
author | Werner Koch <[email protected]> | 2017-07-05 08:14:00 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2017-07-05 08:14:00 +0000 |
commit | 0148ea8d5acde2ad5d0376fb7eaa2221e88f258a (patch) | |
tree | 404cd4dc0600f984ce3cf8ea8a4a936f6d8025d3 | |
parent | build: Install yat2m. (diff) | |
download | libgpg-error-0148ea8d5acde2ad5d0376fb7eaa2221e88f258a.tar.gz libgpg-error-0148ea8d5acde2ad5d0376fb7eaa2221e88f258a.zip |
yat2m: Use version from libgpg-error.
* doc/yat2m.c (VERSION): Define as PACKAGE_VERSION.
* doc/Makefile.am (yat2m): Pass PACKAGE_VERSION with -D.
Signed-off-by: Werner Koch <[email protected]>
-rw-r--r-- | doc/Makefile.am | 3 | ||||
-rw-r--r-- | doc/yat2m.c | 6 |
2 files changed, 7 insertions, 2 deletions
diff --git a/doc/Makefile.am b/doc/Makefile.am index 849c661..d052283 100644 --- a/doc/Makefile.am +++ b/doc/Makefile.am @@ -35,7 +35,8 @@ myman_pages = gpg-error-config.1 man_MANS = $(myman_pages) yat2m: yat2m.c - $(CC_FOR_BUILD) -o $@ $(srcdir)/yat2m.c + $(CC_FOR_BUILD) -DPACKAGE_VERSION="\"$(PACKAGE_VERSION)\"" \ + -o $@ $(srcdir)/yat2m.c yat2m-stamp: $(myman_sources) diff --git a/doc/yat2m.c b/doc/yat2m.c index 184d27b..27db491 100644 --- a/doc/yat2m.c +++ b/doc/yat2m.c @@ -128,7 +128,11 @@ #define PGM "yat2m" -#define VERSION "1.0" +#ifdef PACKAGE_VERSION +# define VERSION PACKAGE_VERSION +#else +# define VERSION "1.0" +#endif /* The maximum length of a line including the linefeed and one extra character. */ |