diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 12 |
1 files changed, 9 insertions, 3 deletions
@@ -1,5 +1,8 @@ DST=emmet-mode.el +# set markdown input format to "markdown-smart" for pandoc version 2 and to "markdown" for pandoc prior to version 2 +MARKDOWN = $(shell if [ `pandoc -v | head -n1 | cut -d" " -f2 | head -c1` = "2" ]; then echo markdown-smart; else echo markdown; fi) + all: emmet-mode.el emmet-mode.elc emmet-mode.el: src/snippets.el src/preferences.el src/* @@ -26,12 +29,15 @@ 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 src/snippets.el src/preferences.el + rm -f emmet-mode.elc emmet-mode.el README.txt src/snippets.el src/preferences.el test: emmet-mode.el emacs --quick --script src/test.el -docs: - echo docs +README.txt: README.md + pandoc -f $(MARKDOWN) -t plain README.md -o README.txt + +docs: README.txt + @echo generated docs .PHONY: all test docs clean |