Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 41477fc

Browse files
committed
Add experimental documentation target
Add experimental `docs` target to create automated API documentation. Also moved all internal things into one unified namespace `detail`.
1 parent 811ebfb commit 41477fc

File tree

2 files changed

+83
-65
lines changed

2 files changed

+83
-65
lines changed

Makefile

+5-1
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,12 @@ EXAMPLE_TARGETS := $(patsubst %,examples/build/%,$(EXAMPLES))
2525

2626
examples: $(EXAMPLE_TARGETS)
2727

28+
docs:
29+
doxygen
30+
moxygen doc/xml --noindex -o doc/api.md
31+
2832
# Assume every *.cpp file is a separate example
29-
$(EXAMPLE_TARGETS): examples/build/%: examples/%.cpp
33+
$(EXAMPLE_TARGETS): examples/build/%: examples/%.cpp matplotlibcpp.h
3034
mkdir -p examples/build
3135
$(CXX) -o $@ $< $(EXTRA_FLAGS) $(CXXFLAGS) $(LDFLAGS)
3236

0 commit comments

Comments
 (0)