aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2016-02-28 03:38:07 -0500
committerKyle Meyer <kyle@kyleam.com>2016-02-28 03:46:06 -0500
commit89741b59f6392a357b3a21ee21c8de2e536b092a (patch)
treed5ce4e75198302285e53684668ac587d41f8e2d6
parent0f6a001f2a6450a837476f9719a28235f2e95d50 (diff)
downloadsnakemake-mode-89741b59f6392a357b3a21ee21c8de2e536b092a.tar.gz
Makefile: Update for snakemake.el
-rw-r--r--Makefile17
1 files changed, 8 insertions, 9 deletions
diff --git a/Makefile b/Makefile
index 15ca413..d095838 100644
--- a/Makefile
+++ b/Makefile
@@ -2,28 +2,27 @@
LOAD_PATH ?=
BATCH = emacs -Q --batch $(LOAD_PATH)
-name = snakemake-mode
-main_el := $(name).el
-main_elc = $(main_el)c
-AUTOLOADS_FILE := $(name)-autoloads.el
+els := snakemake.el snakemake-mode.el
+elcs := $(patsubst %.el, %.elc, $(els))
+AUTOLOADS_FILE = snakemake-autoloads.el
.PHONY: all
-all: $(main_elc) $(AUTOLOADS_FILE)
+all: $(elcs) $(AUTOLOADS_FILE)
.PHONY: test
-test: $(main_elc)
- @$(BATCH) -L . -l test-snakemake-mode \
+test:
+ @$(BATCH) -L . -l test-snakemake \
--eval "(ert-run-tests-batch-and-exit '(not (tag interactive)))"
$(AUTOLOADS_FILE): $(main_el)
@$(BATCH) --eval \
"(let ((make-backup-files nil) \
(generated-autoload-file \"$(CURDIR)/$@\")) \
- (update-file-autoloads \"$(CURDIR)/$<\" t))"
+ (update-directory-autoloads \"$(CURDIR)/\"))"
%.elc: %.el
@$(BATCH) -f batch-byte-compile $<
.PHONY: clean
clean:
- $(RM) $(main_elc) $(AUTOLOADS_FILE)
+ $(RM) $(elcs) $(AUTOLOADS_FILE)