-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
55 lines (41 loc) · 1.51 KB
/
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# Makefile for Sphinx documentation
#
# You can set these variables from the command line.
SPHINXOPTS =
SPHINXBUILD = sphinx-build
BUILDDIR = build
# Internal variables.
ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(SPHINXOPTS) source/docs/
# the i18n builder cannot share the environment and doctrees with the others
I18NSPHINXOPTS = $(SPHINXOPTS) source/docs/
GAME_JS_DIR = source/static/demogame/js
GAME_JS_FILES = $(GAME_JS_DIR)/feature_shiv.js $(GAME_JS_DIR)/header.js \
$(GAME_JS_DIR)/map_loader.js $(GAME_JS_DIR)/controls.js \
$(GAME_JS_DIR)/actor_model.js $(GAME_JS_DIR)/graphics.js \
$(GAME_JS_DIR)/api.js $(GAME_JS_DIR)/characters.js
GAME_JS_LICENSE = $(GAME_JS_DIR)/LICENSE.js
GAME_JS_TARGET = $(GAME_JS_DIR)/lpcd.js
.PHONY: help clean html sphinx virtualenv
html: $(GAME_JS_TARGET) sphinx
debug: $(GAME_JS_TARGET) sphinx
help:
@echo "Please use \`make <target>' where <target> is one of"
@echo " html to make standalone HTML files"
@echo " debug same as html, but without minification"
@echo " clean to clean up the build environment"
clean:
-rm -rf $(BUILDDIR)
-rm $(GAME_JS_TARGET)
sphinx:
$(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)
@echo
@echo "Build finished. The HTML pages are in $(BUILDDIR)/"
virtualenv:
virtualenv .
./bin/easy_install sphinx docutils
@echo
@echo "Virtualenv installed. You may now activate it with 'source bin/activate'"
$(GAME_JS_TARGET):
@echo "Linking together the LPC javascript..."
@echo
cat $(GAME_JS_FILES) > $(GAME_JS_TARGET)