forked from aculich/haskell-emacs
/
Makefile
62 lines (51 loc) · 1.52 KB
/
Makefile
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
################################################################################
# variables
EMACS = emacs
ELFILES = \
src/hs-align-imports.el \
src/hs-cabal-mode.el \
src/hs-cabal.el \
src/hs-completion.el \
src/hs-config.el \
src/hs-core-mode.el \
src/hs-errors.el \
src/hs-faces.el \
src/hs-ghc.el \
src/hs-indent-glfsf.el \
src/hs-indent-hsgm.el \
src/hs-indent-kb.el \
src/hs-interactive-mode.el \
src/hs-lang-en.el \
src/hs-macros.el \
src/hs-mode.el \
src/hs-move-nested.el \
src/hs-navigate-imports.el \
src/hs-package.el \
src/hs-pretty-show.el \
src/hs-process.el \
src/hs-show.el \
src/hs-simple-indent.el \
src/hs-sort-imports.el \
src/hs-string.el \
src/hs-tags.el \
src/hs-types.el \
src/hs-ui.el
# src/hs-project.el
# src/hs.el
ELCFILES = $(ELFILES:.el=.elc)
AUTOLOADS = src/hs-site-file.el
BATCH=$(EMACS) -batch -q -no-site-file -L src -L lib -L lib/auto-complete-1.3.1
################################################################################
# targets
all: $(AUTOLOADS) $(ELCFILES)
src/%.elc: src/%.el
@echo [C] $<
@$(BATCH) -f batch-byte-compile $<
$(AUTOLOADS): $(ELFILES)
[ -f $@ ] || echo '' >$@
$(BATCH) --eval '(setq generated-autoload-file "'`pwd`'/$@")' -f batch-update-autoloads "src"
# emacs generates this temporary file, so just nuke it...
@rm -f $(AUTOLOADS)~
clean:
rm -rf $(AUTOLOADS) $(ELCFILES)
################################################################################