Add Makefile to update vendor files

This commit is contained in:
2015-11-27 12:08:29 +00:00
parent 80e55c08f9
commit ef9c1956b7

21
Makefile Normal file
View File

@@ -0,0 +1,21 @@
.SILENT:
.PHONY: vendor update_vendor \
remove_vendor/linum+.el update_vendor/linum+.el
vendor: vendor/linum+.el
update_vendor:update_vendor/linum+.el
vendor/linum+.el:
echo "fetching vendor/linum+.el..." && \
curl -s -L -o vendor/linum+.el \
http://www.emacswiki.org/emacs/download/linum%2b.el
remove_vendor/linum+.el:
( \
test -f "vendor/linum+.el" && rm "vendor/linum+.el" && \
echo "removed vendor/linum+.el" \
) || exit 0
update_vendor/linum+.el: remove_vendor/linum+.el vendor/linum+.el