summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2023-03-09 20:40:10 -0600
committerJeff Carr <[email protected]>2023-03-09 20:40:10 -0600
commit8c11a42768d48cc5d165da4ff01c2dc390c28f6f (patch)
tree6c78f52eabd9bc77f9388a33ed7d7f4d56806524
parent6caa00c9d053b17ad7133d1c0e2818fe279880d3 (diff)
check if bash already is done
Signed-off-by: Jeff Carr <[email protected]>
-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/