aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2019-11-27 21:27:46 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2019-11-27 21:31:53 -0800
commit0d0ec98dd5657ac6679fc2cfb326601950e5c760 (patch)
tree490d416e250e9162fb8ff7d74b240a7e8c82c618 /Makefile
parentbd175d13b6004086ccd3862822f97c7f090cadb4 (diff)
downloadpandoc-0d0ec98dd5657ac6679fc2cfb326601950e5c760.tar.gz
Generate Emoji module with TH.
- Add Text.Pandoc.Emoji.TH. - Replace long literal list in Text.Pandoc.Emoji with one-liner generating it from data/emoji.json using TH. - Add Makefile target to download data/emoji.json. - Remove tools/emoji.hs.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 2214436c5..acf5e047a 100644
--- a/Makefile
+++ b/Makefile
@@ -120,6 +120,9 @@ download_stats:
curl https://api.github.com/repos/jgm/pandoc/releases | \
jq -r '.[] | .assets | .[] | "\(.download_count)\t\(.name)"'
+data/emoji.json:
+ curl https://raw.githubusercontent.com/github/gemoji/master/db/emoji.json | jq '[.[] | {emoji: .emoji, aliases: .aliases}]' > $@
+
pandoc-templates:
rm ../pandoc-templates/default.* ; \
cp data/templates/default.* ../pandoc-templates/ ; \