summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGustaf Rydholm <gustaf.rydholm@gmail.com>2022-04-12 20:51:17 +0200
committerGustaf Rydholm <gustaf.rydholm@gmail.com>2022-04-12 20:51:17 +0200
commit4ea0d778ae1e6ef14c85aa833484830c17d33c99 (patch)
treeb3283b1d67d9d1406caba74153ab6531dcf8810c
parent25aa9cf364775086ff285f1291dc1644fc9920b4 (diff)
fix(setup): mv to Makefile
-rw-r--r--Makefile10
-rw-r--r--setup.sh7
2 files changed, 10 insertions, 7 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..03ef64a
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,10 @@
+.POSIX:
+
+install:
+ which nvim >/dev/null 2>&1 || echo "Neovim not installed!" && exit 1
+ which luarocks >/dev/null 2>&1 || echo "Luarocks not installed!" && exit 1
+ luarocks list | grep "fennel" || echo "fennel is not installed" && exit 1
+ nvim --headless +qa
+ nvim --headless -c "autocmd User PackerComplete quitall" -c "PackerSync"
+
+.PHONY: install
diff --git a/setup.sh b/setup.sh
deleted file mode 100644
index ab86f04..0000000
--- a/setup.sh
+++ /dev/null
@@ -1,7 +0,0 @@
-#!/bin/sh
-
-which nvim >/dev/null 2>&1 || echo "Neovim not installed!" && exit 1
-which luarocks >/dev/null 2>&1 || echo "Luarocks not installed!" && exit 1
-luarocks list | grep "fennel" || echo "fennel is not installed" && exit 1
-
-nvim --headless +qa && nvim --headless -c "autocmd User PackerComplete quitall" -c "PackerSync"