summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorBrian Evans <bevans@formulafolios.com>2020-03-03 10:52:50 -0800
committerBrian Evans <bevans@formulafolios.com>2020-03-03 10:52:50 -0800
commit81b7c93c963a17cb4984b0f382c2869f0ea3af06 (patch)
tree4c79650263295b03fc1178d738e651b7aeb0071d /Makefile
parentcb077c34b553991ca4e82d2fa16a13c7fc471ed9 (diff)
Adds a makefile for local install and cleans up some of the code
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile22
1 files changed, 22 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..4c8df06
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,22 @@
+UNAME := $(shell uname -s)
+
+SYN := /syntax
+FT := /ftdetect
+
+ifeq ($(UNAME), Haiku)
+ROOT = /boot/home/config/settings/vim
+else
+ROOT := ~/.vim
+endif
+
+.PHONY: install
+install: ./syntax/gmi.vim ./ftdetect/gmi.vim
+ install -d ${ROOT}${SYN}
+ install -d ${ROOT}${FT}
+ install -m 0644 ./syntax/gmi.vim ${ROOT}${SYN}
+ install -m 0644 ./syntax/gmi.vim ${ROOT}${FT}
+
+.PHONY: remove
+remove:
+ rm -rf ${ROOT}${SYN}/gmi.vim
+ rm -rf ${ROOT}${FT}/gmi.vim