Add makefile

This makefile is generalized so that it should work even if the user
adds or renames the .erb template file(s).
This commit is contained in:
Samuel Walladge 2019-05-02 00:01:42 +09:30
parent 10c90c6780
commit 7fbe204473
No known key found for this signature in database
GPG Key ID: 44E2319D42B72AA6
1 changed files with 10 additions and 0 deletions

10
Makefile Normal file
View File

@ -0,0 +1,10 @@
ERB_SOURCES = $(wildcard colors/*.erb)
VIM_OUTPUTS = $(ERB_SOURCES:%.erb=%.vim)
.PHONY: all
all: $(VIM_OUTPUTS)
%.vim: %.erb
erb -T - $< > $@