1
0
mirror of https://git.savannah.gnu.org/git/guix.git synced 2026-04-06 13:10:33 +02:00

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>
This commit is contained in:
Hartmut Goebel
2026-02-13 14:12:25 +09:00
committed by Maxim Cournoyer
parent 427b8f960e
commit 46793f96cd

View File

@@ -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.