better-enums/doc/Makefile
Anton Bachin 2acb5743fa Complete documentation and testing overhaul.
The documentation is now generated from markdown. Samples are generated from the
tutorial pages. Testing is done by a Python script which runs the tests for a
large number of compilers.

This version is not very developer-friendly - the Python scripts need ways of
limiting what compilers they try to run. If you don't have 15 compilers
installed, you won't be able to run the tests in this commit. Fix coming soon.
2015-05-27 09:58:34 -05:00

25 lines
430 B
Makefile

SOURCE_MARKDOWN := $(wildcard tutorial/*) $(wildcard demo/*)
SOURCE_CXX := $(SOURCE_MARKDOWN:.md=.cc)
.PHONY : all
all : html examples
.PHONY : html
html :
python docs.py
.PHONY : examples
examples : clean-examples $(SOURCE_CXX)
.PHONY : clean-examples
clean-examples :
make -C ../example clean
rm -f ../example/*.cc
%.cc : %.md
python transform.py --o-cxx ../example/$(notdir $@) $<
.PHONY : clean
clean :
rm -rf html