Skip to content

Commit 2da324d

Browse files
committed
decomposed the "html" target into sub-targets
1 parent 32c4be3 commit 2da324d

File tree

1 file changed

+19
-9
lines changed

1 file changed

+19
-9
lines changed

Makefile

Lines changed: 19 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,30 @@
33
JEKYLL_WORKDIR=target/jekyll-work
44
JEKYLL_OUTDIR=target/_site
55

6-
all:
7-
8-
html:
9-
rm -rf target/html
10-
mkdir -p target/html/doc
11-
if [ ! -d vim/runtime/doc ]; then git clone --depth=1 https://github.com/vim/vim.git; fi
12-
if [ ! -d vim_faq/doc ]; then git clone --depth=1 https://github.com/chrisbra/vim_faq.git; fi
13-
cd vim; git apply ../tools/add-vimfaq-link.diff; cd ..
14-
cp vim/runtime/doc/*.txt vim_faq/doc/*.txt target/html/doc
6+
html-prepare: vim/runtime/doc vim_faq/doc target/html/doc
7+
rm -f target/html/doc/*.txt
8+
cp vim/runtime/doc/*.txt target/html/doc
9+
cp vim_faq/doc/*.txt target/html/doc
10+
11+
html: html-prepare
1512
-cd target/html/doc ; vim -eu ../../../tools/buildhtml.vim -c "qall!"
1613

14+
vim/runtime/doc:
15+
git clone --depth=1 https://github.com/vim/vim.git
16+
cd vim && git apply ../tools/add-vimfaq-link.diff
17+
18+
vim_faq/doc:
19+
git clone --depth=1 https://github.com/chrisbra/vim_faq.git
20+
21+
target/html/doc:
22+
mkdir -p $@
23+
1724
clean:
1825
rm -rf target
1926

27+
distclean:
28+
rm -rf vim vim_faq
29+
2030
jekyll-build-prepare:
2131
mkdir -p $(JEKYLL_WORKDIR)
2232
cp target/html/doc/*.html $(JEKYLL_WORKDIR)

0 commit comments

Comments
 (0)