File: Makefile

package info (click to toggle)
system-packages-el 1.1.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 132 kB
  • sloc: lisp: 497; makefile: 17
file content (20 lines) | stat: -rw-r--r-- 475 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
EMACS ?= emacs
EMACS_FLAGS = --quick --directory .
EMACS_BATCH = $(EMACS) --batch $(EMACS_FLAGS)

EL  := $(wildcard *.el)
ELC := $(patsubst %.el,%.elc,$(EL))

.PHONY: all
all: compile

.PHONY: compile test
compile: $(ELC)

%.elc: %.el
	$(EMACS_BATCH) --eval "(progn (message (emacs-version)) (setq byte-compile-error-on-warn t) (batch-byte-compile))" $<

test:
	$(EMACS_BATCH) --eval "(progn\
	(load-file \"test/system-packages-test.el\") \
	(ert-run-tests-batch-and-exit))"