summaryrefslogtreecommitdiffstats
path: root/doc/Makefile
blob: 79290547f72bef0f0f0d73269798a53dc1c70236 (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
DOCMAIN :=$(wildcard *.toc)

all: pre-build single text chunked

pre-build:
	./gen_conf.sh $(PLATFORM)

single: $(DOCMAIN)
	asciidoc -a toc $<
ifneq ($(OBJDIR),)
	cp -f *.html $(OBJDIR)
endif

chunked:

pdf: $(DOCMAIN)
	a2x -dbook -f pdf $<
ifneq ($(OBJDIR),)
	cp -f *.pdf $(OBJDIR)
endif

text: $(DOCMAIN)
	a2x -dbook -f text $<
ifneq ($(OBJDIR),)
	cp -f *.text $(OBJDIR)
endif

.PHONY: clean
clean:
	@echo "	CLEAN	doc"
	$(Q)rm -f *.pdf *.html *.xml def.cfg