File: Makefile

package info (click to toggle)
haml-elisp 1%3A3.2.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 136 kB
  • sloc: lisp: 715; makefile: 41
file content (27 lines) | stat: -rw-r--r-- 711 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
EMACS ?= emacs

# A space-separated list of required package names
NEEDED_PACKAGES = #package-lint

INIT_PACKAGES="(progn \
  (require 'package) \
  (package-initialize) \
  (dolist (pkg '(${NEEDED_PACKAGES})) \
    (unless (package-installed-p pkg) \
      (unless (assoc pkg package-archive-contents) \
	(package-refresh-contents)) \
      (package-install pkg))) \
  )"

all: compile clean-elc

package-lint:
	${EMACS} -Q --eval ${INIT_PACKAGES} --eval '(setq package-lint-main-file "haml-mode.el")' -batch -f package-lint-batch-and-exit *.el

compile: clean-elc
	${EMACS} -Q --eval ${INIT_PACKAGES} -L . -batch -f batch-byte-compile *.el

clean-elc:
	rm -f f.elc

.PHONY:	all compile clean-elc package-lint