2019-04-27 22:09:36 +00:00
|
|
|
_SHELL := $(shell which zsh )
|
|
|
|
ifndef _SHELL
|
|
|
|
$(error ZSH is not installed on this machine. This makefile requires ZSH features)
|
|
|
|
endif
|
|
|
|
SHELL := $(_SHELL)
|
|
|
|
|
2020-03-09 17:30:45 +00:00
|
|
|
.ONESHELL:
|
2019-04-27 22:09:36 +00:00
|
|
|
|
|
|
|
# Helper scripts for setting up and taking down links.
|
|
|
|
LIB_DIR := $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
|
|
|
|
mk_link := $(LIB_DIR)/helper/mk_link
|
|
|
|
rm_link := $(LIB_DIR)/helper/rm_link
|
|
|
|
report := LAST_RETURN=$$? $(LIB_DIR)/helper/report
|
2019-12-15 06:37:19 +00:00
|
|
|
|
2019-04-27 22:09:36 +00:00
|
|
|
# Shortcut for the XDG dir if it exist. default to ~/.confg
|
2019-11-22 19:53:31 +00:00
|
|
|
XDG_DIR := $${XDG_CONFIG_HOME:-~/.config}
|
2019-04-27 22:09:36 +00:00
|
|
|
|
2019-05-17 00:13:40 +00:00
|
|
|
|
2019-04-27 22:09:36 +00:00
|
|
|
# TURN THIS OFF FOR DEBUGGING
|
|
|
|
MAKEFLAGS += --silent
|
|
|
|
|
|
|
|
.PHONY: install update init remove
|