Simple rules to build HTML files if we don't have sphinx
authorAlan T. DeKok <aland@freeradius.org>
Mon, 14 Jun 2010 08:50:06 +0000 (10:50 +0200)
committerAlan T. DeKok <aland@freeradius.org>
Tue, 15 Jun 2010 10:15:23 +0000 (12:15 +0200)
doc/Makefile

index 51172cb..aaf7675 100644 (file)
@@ -9,6 +9,8 @@ include ../Make.inc
 SUBDIRS                = examples rfc
 WHAT_TO_MAKE   = all
 
+RST_FILES := $(wildcard *.rst)
+
 all:
        @$(MAKE) $(MFLAGS) WHAT_TO_MAKE=$@ common
 
@@ -36,3 +38,10 @@ $(SUBDIRS):
        @$(MAKE) $(MFLAGS) -C $@ $(WHAT_TO_MAKE)
 
 .PHONY: all clean install common $(SUBDIRS)
+
+%.html: %.rst
+       @rst2html.py $^ > $@
+
+.PHONY: html
+html: $(RST_FILES:.rst=.html)
+