diff options
author | Werner Koch <wk@gnupg.org> | 2017-07-05 10:08:13 +0200 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2017-07-05 10:08:13 +0200 |
commit | d81b1379edbc6007a89c3b2fff1b51c8dfe2e868 (patch) | |
tree | 01aebb4022563471aac238ed1bd812dd463a348d | |
parent | 5494a5728418938d2e42158bb646b07124184e64 (diff) | |
download | libgpg-error-d81b1379edbc6007a89c3b2fff1b51c8dfe2e868.tar.gz |
build: Install yat2m.
* doc/Makefile.am (install-exec-hook): New.
(uninstall-local): Uninstall yat2m.
Signed-off-by: Werner Koch <wk@gnupg.org>
-rw-r--r-- | NEWS | 3 | ||||
-rw-r--r-- | doc/Makefile.am | 13 |
2 files changed, 16 insertions, 0 deletions
@@ -1,6 +1,9 @@ Noteworthy changes in version 1.28 (unreleased) [C22/A22/R_] ----------------------------------------------- + * The formerly internal yat2m tool is now installed during a native + build. + * Interface changes relative to the 1.27 release: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ diff --git a/doc/Makefile.am b/doc/Makefile.am index 565bb09..849c661 100644 --- a/doc/Makefile.am +++ b/doc/Makefile.am @@ -71,9 +71,22 @@ errorref.txt.x : errorref.txt sed '/^##/ d' $< >$@ echo "# Installed by $(PACKAGE_NAME) $(PACKAGE_VERSION)" >>$@ +install-exec-hook: +if CROSS_COMPILING + @echo "not install yat2m while cross-compiling" +else + @echo "installing yat2m on the build system"; \ + $(MKDIR_P) "$(DESTDIR)$(bindir)"; \ + $(INSTALL_PROGRAM_ENV) $(INSTALL_PROGRAM) \ + yat2m "$(DESTDIR)$(bindir)/yat2m" +endif + install-data-local: errorref.txt.x $(mkinstalldirs) $(DESTDIR)$(pkgdatadir) $(INSTALL_DATA) errorref.txt.x $(DESTDIR)$(pkgdatadir)/errorref.txt uninstall-local: -@rm $(DESTDIR)$(pkgdatadir)/errorref.txt +if !CROSS_COMPILING + -@rm $(DESTDIR)$(bindir)/yat2m +endif |