Fix check for point inside link
[markdown-mode.git] / Makefile
blob2f7d2d5230fe54b70b1e034420116a11efe48e04
1 EMACS=emacs
3 PACKAGE=markdown-mode
5 SOURCE=markdown-mode.el
6 COMPILED=markdown-mode.elc
8 VERSION=$(shell cat $(SOURCE) | sed -n 's/^;; Version: \(.*\)/\1/p')
10 TEST_FILES=tests/Makefile tests/*.el tests/*.text tests/*.md
12 .el.elc:
13 $(EMACS) -q -no-site-file -no-init-file -batch -f batch-byte-compile $<
15 all: $(COMPILED)
17 .PHONY: dist test
19 test:
20 make -C tests test
22 clean:
23 rm -f $(COMPILED)
24 make -C tests clean
26 dist:
27 DIR=$$(mktemp -d -t "$(PACKAGE)"); \
28 DESTDIR="$$DIR/$(PACKAGE)-$(VERSION)"; \
29 mkdir -p $$DESTDIR; \
30 cp -a $(SOURCE) $$DESTDIR; \
31 mkdir -p $$DESTDIR/tests; \
32 cp -a $(TEST_FILES) $$DESTDIR/tests; \
33 tar zcf $(CURDIR)/$(PACKAGE)-$(VERSION).tar.gz -C $$DIR .; \
34 rm -r $$DIR; \
35 echo "$(PACKAGE)-$(VERSION).tar.gz has been created"
37 update: $(COMPILED)
38 cp -a $(SOURCE) $(COMPILED) $(HOME)/.emacs.d/site-lisp