docs/Makefile

changeset 754
4bc7d966c9db
parent 753
24dc84788dee
child 765
b5128bb44459
equal deleted inserted replaced
753:24dc84788dee 754:4bc7d966c9db
22 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 22 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
23 23
24 include ../config.mk 24 include ../config.mk
25 25
26 PAGES = index features install license modules-ucx2 26 PAGES = index features install license modules-ucx2
27 DOCS_HTML = $(PAGES:%=$(DOCS_DIR)/web/%.html) 27 DOCS_HTML = $(PAGES:%=$(docs_dir)/web/%.html)
28 DOCS_CSS = $(DOCS_DIR)/web/ucx.css 28 DOCS_CSS = $(docs_dir)/web/ucx.css
29 29
30 all: all-html all-api 30 all: all-html all-api
31 31
32 all-html: $(DOCS_DIR)/web $(DOCS_HTML) $(DOCS_CSS) FORCE 32 all-html: $(docs_dir)/web $(DOCS_HTML) $(DOCS_CSS) FORCE
33 @echo "[ HTML Docs Generated ]" 33 @echo "[ HTML Docs Generated ]"
34 34
35 all-api: $(DOCS_DIR)/web $(DOCS_DIR)/web/api-2.1 $(DOCS_DIR)/web/api FORCE 35 all-api: $(docs_dir)/web $(docs_dir)/web/api-2.1 $(docs_dir)/web/api FORCE
36 @echo "[ API Docs Generated ]" 36 @echo "[ API Docs Generated ]"
37 37
38 $(DOCS_DIR)/web/api-2.1: api-2.1 FORCE 38 $(docs_dir)/web/api-2.1: api-2.1 FORCE
39 $(COPYALL) $< $@ 39 $(COPYALL) $< $@
40 40
41 $(DOCS_DIR)/web/api: FORCE 41 $(docs_dir)/web/api: FORCE
42 cd $(src_dir); $(DOXYGEN) 42 cd $(src_dir); $(DOXYGEN)
43 43
44 $(DOCS_DIR)/web: 44 $(docs_dir)/web:
45 $(MKDIR) $@ 45 $(MKDIR) $@
46 46
47 $(DOCS_CSS): src/ucx.css 47 $(DOCS_CSS): src/ucx.css
48 $(COPYFILE) $< $@ 48 $(COPYFILE) $< $@
49 49
50 $(DOCS_DIR)/web/modules-ucx2.html: src/modules-ucx2.md 50 $(docs_dir)/web/modules-ucx2.html: src/modules-ucx2.md
51 $(PANDOC) -c ucx.css -B src/header-ucx2.html -A src/footer.html \ 51 $(PANDOC) -c ucx.css -B src/header-ucx2.html -A src/footer.html \
52 -T 'UAP Common Extensions' -o $@ $< 52 -T 'UAP Common Extensions' -o $@ $<
53 53
54 $(DOCS_DIR)/web/%.html: src/%.md 54 $(docs_dir)/web/%.html: src/%.md
55 $(PANDOC) -c ucx.css -B src/header.html -A src/footer.html \ 55 $(PANDOC) -c ucx.css -B src/header.html -A src/footer.html \
56 -T 'UAP Common Extensions' -o $@ $< 56 -T 'UAP Common Extensions' -o $@ $<
57 57
58 FORCE: 58 FORCE:

mercurial