2012-08-16 23:41:25 -04:00
|
|
|
REF = HEAD
|
|
|
|
VERSION = $(shell git describe --always $(REF))
|
|
|
|
|
|
|
|
ARCHIVE = vim-coffee-script-$(VERSION).zip
|
2013-11-16 14:45:48 -05:00
|
|
|
ARCHIVE_DIRS = after autoload compiler doc ftdetect ftplugin indent syntax
|
2012-08-16 23:41:25 -04:00
|
|
|
|
|
|
|
# Don't do anything by default.
|
|
|
|
all:
|
|
|
|
|
|
|
|
# Make vim.org zipball.
|
|
|
|
archive:
|
|
|
|
git archive $(REF) -o $(ARCHIVE) -- $(ARCHIVE_DIRS)
|
|
|
|
|
|
|
|
# Remove zipball.
|
|
|
|
clean:
|
|
|
|
-rm -f $(ARCHIVE)
|
|
|
|
|
|
|
|
# Build the list of syntaxes for @coffeeAll.
|
|
|
|
coffeeAll:
|
|
|
|
@grep -E 'syn (match|region)' syntax/coffee.vim |\
|
|
|
|
grep -v 'contained' |\
|
|
|
|
awk '{print $$3}' |\
|
|
|
|
uniq
|
|
|
|
|
|
|
|
.PHONY: all archive clean hash coffeeAll
|