summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
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