summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2017-07-05 10:08:13 +0200
committerWerner Koch <wk@gnupg.org>2017-07-05 10:08:13 +0200
commitd81b1379edbc6007a89c3b2fff1b51c8dfe2e868 (patch)
tree01aebb4022563471aac238ed1bd812dd463a348d /doc
parent5494a5728418938d2e42158bb646b07124184e64 (diff)
downloadlibgpg-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>
Diffstat (limited to 'doc')
-rw-r--r--doc/Makefile.am13
1 files changed, 13 insertions, 0 deletions
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