From: Zbigniew Jędrzejewski-Szmek Date: Fri, 16 Nov 2012 10:00:49 +0000 (+0100) Subject: build-sys: update catalog on installation X-Git-Tag: v196~50 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=commitdiff_plain;h=e2bb347f85fbf5a32abc20e0dada752d3cade01d build-sys: update catalog on installation --- diff --git a/Makefile.am b/Makefile.am index 43db5a529..c0eec94ba 100644 --- a/Makefile.am +++ b/Makefile.am @@ -2714,6 +2714,18 @@ libsystemd-journal-uninstall-hook: UNINSTALL_EXEC_HOOKS += \ libsystemd-journal-uninstall-hook +# Update catalog on installation / deinstallation. Do not bother if installing +# in DESTDIR, since this is likely for packaging purposes. +catalog-update-hook: + test -n "$(DESTDIR)" || journalctl --update-catalog + +INSTALL_EXEC_HOOKS += \ + catalog-update-hook + +UNINSTALL_EXEC_HOOKS += \ + catalog-update-hook + + noinst_PROGRAMS += \ test-journal \ test-journal-send \