mirror of
https://tildegit.org/sloum/gemini-vim-syntax.git
synced 2024-08-14 22:46:59 +00:00
Adds a makefile for local install and cleans up some of the code
This commit is contained in:
parent
cb077c34b5
commit
81b7c93c96
2 changed files with 42 additions and 13 deletions
22
Makefile
Normal file
22
Makefile
Normal file
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue