Add a bunch of autogenerated index entries.
[ibg.git] / tools / Makefile
1 # Makefile for IBG tools.
2
3 PYTHON = python
4 AUTOINDEX = $(PYTHON) autoindex.py
5
6 ROOT = ..
7 CHAP = $(ROOT)/chapters
8 APPX = $(ROOT)/appendices
9
10 FILES = $(ROOT)/about.rst $(CHAP)/01.rst $(CHAP)/02.rst $(CHAP)/03.rst     \
11 $(CHAP)/04.rst $(CHAP)/05.rst $(CHAP)/06.rst $(CHAP)/07.rst $(CHAP)/08.rst \
12 $(CHAP)/09.rst $(CHAP)/10.rst $(CHAP)/11.rst $(CHAP)/12.rst $(CHAP)/13.rst \
13 $(CHAP)/14.rst $(CHAP)/15.rst $(CHAP)/16.rst $(APPX)/c.rst $(APPX)/e.rst
14
15 all: index
16
17 index: $(FILES)
18         @ for file in $(FILES); do                                      \
19             echo autoindexing $$file;                                   \
20             $(AUTOINDEX) $$file;                                        \
21         done
22
23 test: autoindex-test.rst
24         $(AUTOINDEX) $< -