diff options
| author | John MacFarlane <jgm@berkeley.edu> | 2019-11-27 21:27:46 -0800 |
|---|---|---|
| committer | John MacFarlane <jgm@berkeley.edu> | 2019-11-27 21:31:53 -0800 |
| commit | 0d0ec98dd5657ac6679fc2cfb326601950e5c760 (patch) | |
| tree | 490d416e250e9162fb8ff7d74b240a7e8c82c618 /Makefile | |
| parent | bd175d13b6004086ccd3862822f97c7f090cadb4 (diff) | |
| download | pandoc-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-- | Makefile | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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/ ; \ |
