forked from auto-complete/auto-complete
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
52 lines (40 loc) · 1.17 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
VERSION=`perl -ne 'print $$1 if /;; Version: (.*)/' auto-complete.el`
PACKAGE=auto-complete-${VERSION}
EMACS ?= emacs
CASK ?= cask
SITE=../auto-complete.github.com
ELPA_DIR = $(shell EMACS=$(EMACS) $(CASK) package-directory)
test: elpa
$(CASK) exec $(EMACS) -batch -Q -L . \
-l tests/run-test.el \
-f ert-run-tests-batch-and-exit
byte-compile: elpa
$(CASK) exec $(EMACS) -Q -L . -batch -f batch-byte-compile auto-complete.el auto-complete-config.el
install: byte-compile
$(CASK) exec $(EMACS) -Q -L . -batch -l etc/install ${DIR}
README.html: README.md
pandoc --standalone --to html --output $@ $^
site: README.html
(cd doc && make)
cp README.html $(SITE)/index.html
mkdir -p $(SITE)/doc
cp doc/*.png doc/*.html doc/*.css $(SITE)/doc
clean:
rm -f README.html
rm -f *.elc
rm -f doc/*.html
rm -rf ${PACKAGE}
rm -f ${PACKAGE}.zip ${PACKAGE}.tar ${PACKAGE}.tar.bz2
package: clean
mkdir ${PACKAGE}
cp -r *.el Makefile *.md COPYING.* doc dict ${PACKAGE}
package.tar: package
tar cf ${PACKAGE}.tar ${PACKAGE}
package.tar.bz2: tar
bzip2 ${PACKAGE}.tar
package.zip: package
zip -r ${PACKAGE}.zip ${PACKAGE}
elpa: $(ELPA_DIR)
$(ELPA_DIR): Cask
$(CASK) install
touch $@