aboutsummaryrefslogtreecommitdiff
path: root/doc/Makefile
blob: 7e3c32e747ef186823233fd1105860b9d11e987e (plain)
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
JSDOC_DIR=jsdoc
MANUAL_DIR=manual
MANUAL_SRC=manual_src
MAN_DEPS=$(MANUAL_SRC)/*.md $(MANUAL_SRC)/figures/*.png
JSDOC_TOOLKIT=../build/jsdoc

all: jsdoc man

.PHONY: jsdoc
jsdoc: ../contexts/data/fiveui/injected/prelude.js ../contexts/data/fiveui/injected/jquery-plugins.js
	@$(JSDOC_TOOLKIT) ../contexts/data/fiveui/injected/prelude.js ../contexts/data/fiveui/injected/jquery-plugins.js

.PHONY: man
man: web-manual

$(MANUAL_DIR):
	@mkdir -p $(MANUAL_DIR)

.PHONY: web-manual
web-manual: $(MANUAL_DIR) $(MAN_DEPS)
	@make -C $(MANUAL_SRC)
	@cp -r $(MANUAL_SRC)/figures $(MANUAL_DIR)
	@cp -r $(MANUAL_SRC)/images $(MANUAL_DIR)
	@cp $(MANUAL_SRC)/*.html $(MANUAL_DIR)
	@cp $(MANUAL_SRC)/*.css $(MANUAL_DIR)
#	@mv $(MANUAL_SRC)/*.html $(MANUAL_DIR)

clean:
	@make -C $(MANUAL_SRC) clean
	@$(RM) -r $(JSDOC_DIR)
	@$(RM) -r $(MANUAL_DIR)