2012-08-18 13:57:56 +02:00
|
|
|
EMACS = emacs
|
|
|
|
|
2012-08-26 21:50:26 +02:00
|
|
|
files = init.el init.elc
|
|
|
|
install-files = $(addprefix install-,$(files))
|
2012-08-18 13:57:56 +02:00
|
|
|
submodules = eshell
|
|
|
|
install-submodules = $(addprefix install-,$(submodules))
|
|
|
|
|
|
|
|
.PHONY: all $(submodules) install $(install-submodules) $(install-files)
|
|
|
|
|
2012-08-26 21:50:26 +02:00
|
|
|
all: $(files) $(submodules)
|
2012-08-18 13:57:56 +02:00
|
|
|
|
|
|
|
$(submodules):
|
|
|
|
$(MAKE) -C $@/
|
|
|
|
|
|
|
|
$(filter %.elc,$(files)): %.elc: %.el
|
|
|
|
$(EMACS) -batch -eval "(byte-compile-file \"$^\")"
|
|
|
|
|
|
|
|
install: $(install-files) $(install-submodules)
|
|
|
|
|
2012-08-19 00:26:15 +02:00
|
|
|
$(install-files): install-%: $*
|
2012-08-18 13:57:56 +02:00
|
|
|
install -Dm 444 $* ${HOME}/.emacs.d/$*
|
|
|
|
|
|
|
|
$(install-submodules): install-%:
|
|
|
|
$(MAKE) -C $*/ install
|