forked from EdenEast/nightfox.nvim
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
30 lines (23 loc) · 865 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
pandocrepo = https://github.com/kdheepak/panvimdoc
pandocdir = misc/panvimdoc
root_dir := $(shell dirname $(realpath $(firstword $(MAKEFILE_LIST))))
all: compile extragen docgen
compile:
nvim --headless --clean -u misc/precompile.lua
extragen:
nvim --headless --clean -u misc/extra.lua
minimal:
sed -i "s|EdenEast/nightfox.nvim|${root_dir}|g" minimal_init.lua
nvim --clean -u minimal_init.lua minimal_init.lua
docgen: | $(pandocdir)
@pandoc \
--metadata=project:nightfox \
--metadata="description:A highly customizable theme for vim and neovim" \
--lua-filter misc/panvimdoc/scripts/skip-blocks.lua \
--lua-filter misc/panvimdoc/scripts/include-files.lua \
-t misc/panvimdoc/scripts/panvimdoc.lua \
usage.md \
-o doc/nightfox.txt
$(pandocdir):
git clone --depth=1 --no-single-branch $(pandocrepo) $(pandocdir)
@rm -rf doc/panvimdoc/.git