aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
blob: 37756493ee3888cf52890201e8d52a094c8c2f63 (plain) (blame)
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

ASCIIDOC       = asciidoc
ASCIIDOC_FLAGS = -a toc2 \
         -a data-uri \
         -a toclevels=4 \
         -a max-width=70em \
         -b html5 \
         --theme=volnitsky

README      = README.asciidoc
README_HTML = README.html

CURRENT_DIR = $(shell pwd)

.PHONY: all clean

all: readme doc;

readme: $(README_HTML);

doc: document;
    
clean:
    -rm -f $(README) $(README_HTML)
    -rm -rf doc/*

######################################################################

.PHONY: $(README)
$(README): 
    ./readme_generate.py $(README)

ASCIIDOC_SOURCE = $(README)
ASCIIDOC_OUTPUT = $(README_HTML)

include asciidoc/Makefile

######################################################################

DOXYGEN_RUN_PATH    = $(CURRENT_DIR)
DOXYGEN_CONFIG_PATH = $(CURRENT_DIR)/doxygen
include $(DOXYGEN_CONFIG_PATH)/Makefile