Archived
1
0
Fork 0
This repository has been archived on 2026-05-10. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
archived/docs/Makefile

30 lines
684 B
Makefile

ASCIIDOC = asciidoc
DOCS = $(filter-out index.txt, $(wildcard *.txt))
TECH_DOCS = $(filter-out technical/index.txt, $(wildcard technical/*.txt))
ifndef VERBOSE
QUIET_ASCIIDOC = @echo ' ' GEN $@;
QUIET_SCRIPT = @echo ' ' GEN $@;
endif
.PHONY : clean
all : html technical
html : index.html
technical : technical/index.html
%.html : %.txt
$(QUIET_ASCIIDOC)$(ASCIIDOC) -b xhtml11 -o $@ $<
index.txt : $(patsubst %.txt,%.html,$(DOCS))
$(QUIET_SCRIPT)$(shell ./genindex.sh index.txt)
technical/index.txt : $(patsubst %.txt,%.html,$(TECH_DOCS))
$(QUIET_SCRIPT)cd technical && ./genindex.sh index.txt
clean :
$(RM) index.txt *.html technical/index.txt technical/*.html