From: Mark Lodato Date: Mon, 5 Oct 2009 02:36:40 +0000 (-0400) Subject: freeze: Makefile: add target to build README.html X-Git-Tag: 0.12.alpha0~25 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=1a313ebda0f7ced46236ebcfdc27b816530e865a;p=cython.git freeze: Makefile: add target to build README.html Add a target (with alias "html") to build README.html from README.txt using rst2html. This is not run by default. --- diff --git a/Demos/freeze/Makefile b/Demos/freeze/Makefile index 01d6cf8d..fe4f36ea 100644 --- a/Demos/freeze/Makefile +++ b/Demos/freeze/Makefile @@ -2,6 +2,7 @@ CC = gcc CYTHON = ../../bin/cython CYTHON_FREEZE = ../../bin/cython_freeze PYTHON = python +RST2HTML = rst2html PY_LDFLAGS = $(shell $(PYTHON) -c 'from distutils.sysconfig import get_config_var as g; print " ".join([g("LINKFORSHARED"), "-L"+g("LIBPL")])') PY_CPPFLAGS = $(shell $(PYTHON) -c 'from distutils.sysconfig import *; print "-I"+get_python_inc()') @@ -22,6 +23,7 @@ CYTHON_SECONDARY = $(CYTHON_SOURCE:.pyx=.c) $(TARGETS:=.c) all : $(TARGETS) +html : README.html $(TARGETS) : % : %.o $(CYTHON_SOURCE:.pyx=.o) @@ -34,8 +36,11 @@ python.c : %.c : %.pyx $(CYTHON) $(CYTHONFLAGS) $^ +%.html : %.txt + $(RST2HTML) $^ $@ + clean: - $(RM) *.o $(CYTHON_SECONDARY) $(TARGETS) + $(RM) *.o $(CYTHON_SECONDARY) $(TARGETS) README.html .PHONY: clean .SECONDARY: $(CYTHON_SECONDARY)