2020-03-03 18:52:50 +00:00
|
|
|
UNAME := $(shell uname -s)
|
|
|
|
|
|
|
|
SYN := /syntax
|
|
|
|
FT := /ftdetect
|
|
|
|
|
2020-03-03 18:58:38 +00:00
|
|
|
ifeq ($(OS), Windows_NT)
|
|
|
|
ROOT := $(HOME)/vimfiles
|
2020-03-03 18:52:50 +00:00
|
|
|
else
|
2020-03-03 18:58:38 +00:00
|
|
|
ifeq ($(UNAME), Haiku)
|
|
|
|
ROOT := /boot/home/config/settings/vim
|
|
|
|
else
|
|
|
|
ROOT := ~/.vim
|
|
|
|
endif
|
2020-03-03 18:52:50 +00:00
|
|
|
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
|