summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile25
1 files changed, 18 insertions, 7 deletions
diff --git a/Makefile b/Makefile
index b8c5b37..23ab61c 100644
--- a/Makefile
+++ b/Makefile
@@ -1,8 +1,23 @@
all:
- echo is this a new install?
+ @echo
+ @echo is this a new install?
+ @echo if so, run:
+ @echo
+ @echo 'make new-install'
+ @echo
-check:
- echo ${WIT_USER}
+new-install:
+ make setup-bash
+ make go
+
+setup-bash:
+ifeq ($(WIT_BASH),true)
+ echo WIT_BASH is already set WIT_USER=${WIT_USER}
+ exit
+else
+ echo WIT_BASH is not set WIT_USER=${WIT_USER}
+ cat bashrc/.bashrc >> ~/.bashrc
+endif
go:
wget https://go.dev/dl/go1.19.linux-amd64.tar.gz
@@ -16,10 +31,6 @@ git-update:
cd ~/.config/wit/
git pull
-setup-bash:
- echo ${WIT_USER}
- cat bashrc/.bashrc >> ~/.bashrc
-
setup-vim:
cp ~/.config/wit/vimrc ~/.config/