diff options
author | Werner Koch <[email protected]> | 2017-07-05 08:08:13 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2017-07-05 08:08:13 +0000 |
commit | d81b1379edbc6007a89c3b2fff1b51c8dfe2e868 (patch) | |
tree | 01aebb4022563471aac238ed1bd812dd463a348d /doc | |
parent | yat2m: Take care of SOURCE_DATE_EPOCH. (diff) | |
download | libgpg-error-d81b1379edbc6007a89c3b2fff1b51c8dfe2e868.tar.gz libgpg-error-d81b1379edbc6007a89c3b2fff1b51c8dfe2e868.zip |
build: Install yat2m.
* doc/Makefile.am (install-exec-hook): New.
(uninstall-local): Uninstall yat2m.
Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/Makefile.am | 13 |
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 |