This repository has been archived on 2024-03-28. You can view files and clone it, but cannot push or open issues or pull requests.
dotfiles/Makefile

21 lines
688 B
Makefile
Raw Normal View History

2017-06-20 16:10:23 -05:00
MAKEFILE_PATH ?= $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
ALERT_AGREEMENT_FILE ?= "$(MAKEFILE_PATH)/.agreed-to-erasing-files.lock"
default: install
$(ALERT_AGREEMENT_FILE):
@echo -e "Running this script may delete existing personal configuration files.\n" \
"Please view this script's source, fully understand it, and backup any\n" \
"files before continuing.\n" \
"Seriously. Like... entire directories. Just gone."
# RESPONSE=$(shell bash -c 'read -r -p "Are you sure you want to continue? [y/N] "')
# @if [[ $response =~ ^(yes|y)$ ]]; then
# @echo "agreed" > "$ALERT_AGREEMENT_FILE"
# @else
# @exit 1
# @fi
install: $(ALERT_AGREEMENT_FILE)
@echo "Installed!"