forked from auto-complete/auto-complete
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
56 lines (42 loc) · 1.35 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
VERSION=`perl -ne 'print $$1 if /;; Version: (.*)/' auto-complete.el`
PACKAGE=auto-complete-${VERSION}
EMACS=emacs
SITE=../auto-complete.github.com
lib/popup/popup.el:
@echo 'Please place popup.el in lib/popup or do "git submodule init; git submodule update".'
@exit 1
lib/fuzzy/fuzzy.el:
@echo 'Please place fuzzy.el in lib/fuzzy or do "git submodule init; git submodule update".'
@exit 1
check-dependency: lib/popup/popup.el lib/fuzzy/fuzzy.el
byte-compile: check-dependency
${EMACS} -Q -L . -L lib/popup -L lib/fuzzy -batch -f batch-byte-compile auto-complete.el auto-complete-config.el
test: check-dependency
${EMACS} -batch -Q -l tests/run-test.el
install:
${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}
travis-ci:
${EMACS} --version
${EMACS} -batch -Q -l tests/run-test.el