aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile15
1 files changed, 14 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 16b59ce..0cd248c 100644
--- a/Makefile
+++ b/Makefile
@@ -1,3 +1,5 @@
+VERSION=1.0.0
+
DST=emmet-mode.el
# set markdown input format to "markdown-smart" for pandoc version 2 and to "markdown" for pandoc prior to version 2
@@ -29,7 +31,7 @@ src/preferences.el: conf/preferences.json
tools/json2hash conf/preferences.json -o src/preferences.el --defvar 'emmet-preferences'
clean:
- rm -f emmet-mode.elc emmet-mode.el README.txt src/snippets.el src/preferences.el
+ rm -f emmet-mode.elc emmet-mode.el README.txt src/snippets.el src/preferences.el emmet-mode-$(VERSION).tar.gz
test: emmet-mode.el
emacs --quick --script src/test.el
@@ -40,4 +42,15 @@ README.txt: README.md
docs: README.txt
@echo generated docs
+dist: docs
+ @tar -czf emmet-mode-$(VERSION).tar.gz --transform "s|^|emmet-mode-$(VERSION)/|" --owner 0 --group 0 \
+ --exclude '*.DS_Store' \
+ --exclude '*.kate-swp' \
+ --exclude '*.elcc' \
+ --exclude '*~' \
+ --exclude '.git' \
+ -- \
+ conf src tools LICENSE Makefile \
+ README.md README.txt AUTHORS
+
.PHONY: all test docs clean