-
-
Notifications
You must be signed in to change notification settings - Fork 287
/
Copy pathMakefile
50 lines (38 loc) · 1005 Bytes
/
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
VERSION=`perl -ne 'print $$1 if /;; Version: (.*)/' auto-complete.el`
PACKAGE=auto-complete-${VERSION}
EMACS ?= emacs
EASK ?= eask
SITE=../auto-complete.github.com
ELPA_DIR = $(shell EMACS=$(EMACS) $(CASK) package-directory)
ci: compile install test
test:
$(EASK) install-deps --dev
$(EASK) test ert ./tests/run-test.el
compile:
$(EASK) compile
install:
$(EASK) package
$(EASK) install
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:
$(EASK) clean all
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}