Permalink
Browse files

Fix issue #138

  • Loading branch information...
1 parent 5507b8a commit fcbed9cd1a9bbcd298287ef3b05a62ac3221aa07 @Rip-Rip committed Apr 15, 2012
Showing with 11 additions and 8 deletions.
  1. +11 −8 Makefile
View
19 Makefile
@@ -1,14 +1,17 @@
-SHELL=/bin/bash
+SHELL := /bin/bash
+FILES := $(shell git ls-files autoload bin doc plugin)
-all: dist
+all: clang_complete.vmb
-dist:
- @vim -c 'r! git ls-files autoload bin doc plugin' \
+clang_complete.vmb: $(FILES)
+ vim -c "r! git ls-files autoload bin doc plugin" \
-c '$$,$$d _' \
- -c '%MkVimball! clang_complete.vba .' -c 'q!'
+ -c "%MkVimball! $@ ." -c 'q!'
-install: dist
- @vim clang_complete.vba -c 'so %' -c 'q'
+.PHONY: install
+install: clang_complete.vmb
+ vim $< -c 'so %' -c 'q'
+.PHONY: clean
clean:
- @rm -f clang_complete.vba
+ rm -f clang_complete.vba

0 comments on commit fcbed9c

Please sign in to comment.