-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
35 lines (30 loc) · 987 Bytes
/
Makefile
File metadata and controls
35 lines (30 loc) · 987 Bytes
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
31
32
33
34
35
.PHONY: all clean install_illuminated install_pandoc generate_docs update_docs
all: install_illuminated install_pandoc generate_docs
install_illuminated:
git clone https://github.com/getlantern/illuminated.git
cd illuminated
@if ./is_current.sh illuminated; then \
echo "Already current, skipping build"; \
rm -rf illuminated; \
else \
cd illuminated/cmd && go build -o ../../illuminate; \
rm -rf illuminated; \
fi
install_pandoc:
sudo apt-get update
sudo apt-get install -y pandoc
sudo apt-get install -y texlive-xetex texlive-latex-base texlive-fonts-recommended texlive-fonts-extra texlive-latex-extra
sudo apt-get install -y fonts-dejavu fonts-noto
generate_docs: install_illuminated install_pandoc
./illuminate generate --verbose \
--source https://github.com/getlantern/guide.wiki.git \
--base "en" \
--languages "en,ru,fa,ar,zh" \
--translator "google" \
--title "Lantern VPN" \
--html \
--pdf \
--join \
--force
clean:
rm -f illuminated