summaryrefslogtreecommitdiff
path: root/Makefile.am
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2012-11-16 11:00:49 +0100
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2012-11-16 11:00:49 +0100
commite2bb347f85fbf5a32abc20e0dada752d3cade01d (patch)
treec730152477df79ec048c7ab6a5d08a0d3fba0240 /Makefile.am
parent80343dc19a9bcd703275ad2ad88f43e5310559d6 (diff)
build-sys: update catalog on installation
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am12
1 files changed, 12 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am
index 43db5a529e..c0eec94baf 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 \