2020-03-19 19:55:20 +00:00
|
|
|
# -*- mode: makefile-gmake; -*-
|
2019-04-27 22:21:33 +00:00
|
|
|
SRC_DIR := $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
|
|
|
|
GIT_HOOK_SRC = $(SRC_DIR)/post-merge
|
|
|
|
GIT_HOOK_TARGET = $(abspath $(SRC_DIR)/..)/.git/hooks/post-merge
|
|
|
|
|
|
|
|
include ../lib/shared.mk
|
|
|
|
|
|
|
|
install: | init update
|
|
|
|
|
|
|
|
init:
|
2020-03-09 17:30:45 +00:00
|
|
|
$(report) header "Setting up githook"
|
|
|
|
$(report) pass "Symlinked `ln -svf $(GIT_HOOK_SRC) $(GIT_HOOK_TARGET)`"
|
2019-04-27 22:21:33 +00:00
|
|
|
|
|
|
|
update:
|
|
|
|
|
|
|
|
remove:
|
2020-03-09 17:30:45 +00:00
|
|
|
$(report) header "Removing githook"
|
2019-04-27 22:21:33 +00:00
|
|
|
$(rm_link) $(GIT_HOOK_TARGET)
|