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
13 $(EMACS
) -q
-no-site-file
-no-init-file
-batch
-f batch-byte-compile
$<
29 DIR
=$$(mktemp
-d
-t
"$(PACKAGE)"); \
30 DESTDIR
="$$DIR/$(PACKAGE)-$(VERSION)"; \
32 cp
-a
$(SOURCE
) $$DESTDIR; \
33 mkdir
-p
$$DESTDIR/tests
; \
34 cp
-a
$(TEST_FILES
) $$DESTDIR/tests
; \
35 tar zcf
$(CURDIR
)/$(PACKAGE
)-$(VERSION
).
tar.gz
-C
$$DIR .
; \
37 echo
"$(PACKAGE)-$(VERSION).tar.gz has been created"
40 cp
-a
$(SOURCE
) $(COMPILED
) $(HOME
)/.emacs.d
/site-lisp