mirror of
https://github.com/jimeh/.emacs.d.git
synced 2026-02-19 13:46:41 +00:00
49 lines
776 B
Makefile
49 lines
776 B
Makefile
.SILENT:
|
|
|
|
|
|
#
|
|
# Main targets
|
|
#
|
|
|
|
.PHONY: backup-elpa
|
|
backup-elpa:
|
|
tar -cjf elpa_$(shell date "+%Y-%m-%d").tar.bz2 elpa
|
|
|
|
.PHONY: vendor
|
|
vendor: \
|
|
vendor/escreen.el \
|
|
vendor/linum+.el
|
|
|
|
.PHONY: update_vendor
|
|
update_vendor: \
|
|
update_vendor/escreen.el \
|
|
update_vendor/linum+.el
|
|
|
|
#
|
|
# Internals
|
|
#
|
|
|
|
define vendored
|
|
$(1):
|
|
echo "fetching $(1)..." && \
|
|
curl -s -L -o "$(1)" "$(2)"
|
|
|
|
.PHONY: remove_$(1)
|
|
remove_$(1):
|
|
( \
|
|
test -f "$(1)" && rm "$(1)" && \
|
|
echo "removed $(1)" \
|
|
) || exit 0
|
|
|
|
.PHONY: update_$(1)
|
|
update_$(1): remove_$(1) $(1)
|
|
endef
|
|
|
|
|
|
#
|
|
# Specify vendor targets
|
|
#
|
|
|
|
$(eval $(call vendored,vendor/escreen.el,"https://github.com/renard/escreen-el/raw/master/escreen.el"))
|
|
$(eval $(call vendored,vendor/linum+.el,"http://www.emacswiki.org/emacs/download/linum%2b.el"))
|