aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorMatt Singleton <matt@xcolour.net>2024-05-31 14:13:01 -0500
committerMatt Singleton <matt@xcolour.net>2024-05-31 14:13:01 -0500
commitc8dea64ee21c16b35c2a8b4982806984daba3273 (patch)
treeb09c8d38be1b5fa37b0a8259838b8cf2f7341e98 /Makefile
parent6e58f570e296a04d8bbcc37debc5cccc48fae414 (diff)
simplify makefile
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile12
1 files changed, 3 insertions, 9 deletions
diff --git a/Makefile b/Makefile
index 6f6fc48..5b132e7 100644
--- a/Makefile
+++ b/Makefile
@@ -1,21 +1,15 @@
REPO_CHANGES := $(shell git status --porcelain | wc -l)
-DEV_MODE := 0
IS_FEDORA := $(shell command -v dnf > /dev/null && test -f /etc/fedora-release; echo $$?)
-.PHONY: .initialize
-.initialize:
+.PHONY: console
+console:
ifneq ($(REPO_CHANGES),0)
-ifeq ($(DEV_MODE),0)
- $(error will not run with a dirty repo. stash or commit changes, or re-run with DEV_MODE=1.)
-endif
+ $(error will not run with a dirty repo. stash or commit changes, or re-run forcing REPO_CHANGES=0.)
endif
git submodule update --init --recursive
cp --update=none local/vimrc-local stow/vim/.vimrc-local
cp --update=none local/gitconfig-local stow/git/.config/git/config-local
cp --update=none local/local.zsh stow/zsh/.config/zsh/00-local.zsh
-
-.PHONY: console
-console: .initialize
stow --adopt --dir=stow --target=$(HOME) console-utils
stow --adopt --dir=stow --target=$(HOME) dircolors
stow --adopt --dir=stow --target=$(HOME) git