mirror of
https://github.com/aantron/better-enums.git
synced 2025-12-06 16:56:42 +08:00
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.
25 lines
430 B
Makefile
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
|