A vim syntax for my concatenative language, nimf
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

35 lines
860 B

UNAME := $(shell uname -s)
LANGNAME := nimf
SYN := /syntax
FT := /ftdetect
PLUG := /ftplugin
INDENT := /indent
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/${LANGNAME}.vim ./ftdetect/${LANGNAME}.vim
install -d ${ROOT}${SYN}
install -d ${ROOT}${FT}
install -d ${ROOT}${PLUG}
install -d ${ROOT}${INDENT}
install -m 0644 .${SYN}/${LANGNAME}.vim ${ROOT}${SYN}
install -m 0644 .${FT}/${LANGNAME}.vim ${ROOT}${FT}
install -m 0644 .${PLUG}/${LANGNAME}.vim ${ROOT}${PLUG}
install -m 0644 .${INDENT}/${LANGNAME}.vim ${ROOT}${INDENT}
.PHONY: remove
remove:
rm -rf ${ROOT}${SYN}/${LANGNAME}.vim
rm -rf ${ROOT}${FT}/${LANGNAME}.vim
rm -rf ${ROOT}${PLUG}/${LANGNAME}.vim
rm -rf ${ROOT}${INDENT}/${LANGNAME}.vim