From d81b1379edbc6007a89c3b2fff1b51c8dfe2e868 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Wed, 5 Jul 2017 10:08:13 +0200 Subject: build: Install yat2m. * doc/Makefile.am (install-exec-hook): New. (uninstall-local): Uninstall yat2m. Signed-off-by: Werner Koch --- NEWS | 3 +++ doc/Makefile.am | 13 +++++++++++++ 2 files changed, 16 insertions(+) diff --git a/NEWS b/NEWS index bfea6e0..687e185 100644 --- a/NEWS +++ b/NEWS @@ -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 -- cgit v1.2.3