2020-03-19 19:55:20 +00:00
|
|
|
# -*- mode: makefile-gmake; -*-
|
2019-05-03 23:41:39 +00:00
|
|
|
SRC_DIR := $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
|
|
|
|
SOURCE := $(SRC_DIR)/gitconfig
|
|
|
|
TARGET := ~/.gitconfig
|
|
|
|
|
|
|
|
include ../lib/shared.mk
|
|
|
|
|
|
|
|
init:
|
2020-03-09 17:30:45 +00:00
|
|
|
$(report) header "Setting up gitconfig"
|
2019-05-03 23:41:39 +00:00
|
|
|
$(mk_link) $(SOURCE) $(TARGET)
|
2024-08-09 13:59:39 +00:00
|
|
|
touch $(TARGET).local
|
2019-05-03 23:41:39 +00:00
|
|
|
|
2021-11-28 21:33:24 +00:00
|
|
|
up: init
|
2019-05-03 23:41:39 +00:00
|
|
|
|
2021-11-28 21:33:24 +00:00
|
|
|
down:
|
2020-03-09 17:30:45 +00:00
|
|
|
$(report) header "Removing gitconfig"
|
2019-05-03 23:41:39 +00:00
|
|
|
$(rm_link) $(TARGET)
|