forked from uboslinux/ubos-docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
34 lines (24 loc) · 845 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
31
32
33
34
# Makefile for ubos.net
# ubos.net variables
STAGEDIR = stage
CACHEDIR = cache
# You can set these variables from the command line.
SPHINXOPTS = -v
DOCTREEDIR = $(CACHEDIR)/doctrees
ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) source
# the i18n builder cannot share the environment and doctrees with the others
I18NSPHINXOPTS = $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) source
.PHONY: all clean jekyll sphinx open
all: jekyll sphinx static
clean:
rm -rf $(STAGEDIR)/*
sphinx:
sphinx-build -b html -d $(DOCTREEDIR) $(PHINXOPTS) sphinx $(STAGEDIR)/docs
jekyll:
jekyll build -s jekyll -d $(STAGEDIR)
static:
install -m644 images/ubos.ico $(STAGEDIR)/favicon.ico
[ -d "$(STAGEDIR)/files" ] || mkdir "$(STAGEDIR)/files"
install -m644 files/* $(STAGEDIR)/files/
open:
open -a Firefox http://localhost/