Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 31 lines (23 sloc) 0.701 kb
18d3b71 @kchmck Add Makefile with initial archive rules
authored
1 REF = HEAD
c91aaa0 @kchmck Use git rev-list for HASH
authored
2 HASH = $(shell git rev-list -n 1 --abbrev-commit $(REF))
18d3b71 @kchmck Add Makefile with initial archive rules
authored
3
4 ARCHIVE = vim-coffee-script-$(HASH).zip
5 ARCHIVE_DIRS = after ftdetect ftplugin indent syntax
6
e08a7e5 @kchmck Document Makefile rules
authored
7 # Don't do anything by default.
18d3b71 @kchmck Add Makefile with initial archive rules
authored
8 all:
9
e08a7e5 @kchmck Document Makefile rules
authored
10 # Make vim.org zipball.
ed98b39 @kchmck Merge $(ARCHIVE) into archive
authored
11 archive:
12 git archive $(REF) $(ARCHIVE_DIRS) -o $(ARCHIVE)
18d3b71 @kchmck Add Makefile with initial archive rules
authored
13
e08a7e5 @kchmck Document Makefile rules
authored
14 # Remove zipball.
18d3b71 @kchmck Add Makefile with initial archive rules
authored
15 clean:
16 -rm -f $(ARCHIVE)
17
e08a7e5 @kchmck Document Makefile rules
authored
18 # Print the abbreviated hash of REF for easy copypasta into vim.org.
18d3b71 @kchmck Add Makefile with initial archive rules
authored
19 hash:
20 @echo $(HASH)
21
e08a7e5 @kchmck Document Makefile rules
authored
22 # Build the list of syntaxes for @coffeeAll.
9bc7646 @kchmck Add coffeeAll rule to Makefile
authored
23 coffeeAll:
24 @grep -E 'syn (match|region)' syntax/coffee.vim |\
25 grep -v 'contained' |\
26 awk '{print $$3}' |\
27 uniq |\
28 grep -vE 'Error|coffeeAssignString|coffeeHeregexComment|coffeeInterp'
29
f65e11c @kchmck Add all to .PHONY
authored
30 .PHONY: all archive clean hash coffeeAll
Something went wrong with that request. Please try again.