summaryrefslogtreecommitdiff
path: root/Makefile
blob: 592a507502842e1a3ae29269c45b8f3104c2aea0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
UNAME := $(shell uname -s)

SYN := /syntax
FT := /ftdetect

ifeq ($(OS), Windows_NT)
	ROOT := $(HOME)/vimfiles
else
	ifeq ($(UNAME), Haiku)
		ROOT := /boot/home/config/settings/vim
	else
		ROOT := ~/.vim
	endif
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