summaryrefslogtreecommitdiff
path: root/Makefile.am
diff options
context:
space:
mode:
authorHartmut Goebel <h.goebel@crazy-compilers.com>2026-02-13 14:12:25 +0900
committerMaxim Cournoyer <maxim@guixotic.coop>2026-02-13 15:02:08 +0900
commit46793f96cdfe55b695d996c0ba367e5fd37b81e4 (patch)
tree5c8fade83a776b8380fe222328c8fd0a0dfd39f5 /Makefile.am
parent427b8f960ec5a3f4c9de4de6917514074bdb371f (diff)
Makefile.am: Add git-config and git-hooks convenience targets.
* Makefile.am (git-config, git-hooks): New phony targets. Change-Id: Ia241300194fbc1ea1d691e867b5dccd8e75077f4 Co-authored-by: Maxim Cournoyer <maxim@guixotic.coop>
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am6
1 files changed, 6 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am
index 4388c75e5b5..732dd9a2c8c 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1291,6 +1291,12 @@ $(GIT_HOOKS_DIR)/commit-msg: etc/git/commit-msg | $(GIT_HOOKS_DIR)
fi; \
cp etc/git/commit-msg $@
+# Convenience targets.
+GIT_HOOKS_SOURCE_FILES := $(shell find etc/git -type f -executable)
+.PHONY: git-config git-hooks invalidate-hooks
+git-hooks: $(addprefix $(GIT_HOOKS_DIR)/,$(notdir $(GIT_HOOKS_SOURCE_FILES)))
+git-config: $(GIT_CONFIG_FILE) git-hooks
+
# The etc/git/ config files are not distributed and have no use when building
# from a tarball. Do not add dependencies on these to *_DATA when building
# from a tarball, as that breaks the build.