Skip to content

Commit a9cd39c

Browse files
committed
Makefiles: Add manual and a global doc target
Manual generation is now included in the doc/Makefile. Additionally, a doc target has been added to the global Makefile.
1 parent 61e4651 commit a9cd39c

File tree

2 files changed

+15
-4
lines changed

2 files changed

+15
-4
lines changed

Makefile

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
1+
.PHONY: doc
22

33
all: build-simavr build-tests build-examples
44

@@ -14,8 +14,12 @@ build-examples: build-simavr
1414
install:
1515
$(MAKE) -C simavr install
1616

17+
doc:
18+
$(MAKE) -C doc
19+
1720
clean:
1821
$(MAKE) -C simavr clean
1922
$(MAKE) -C tests clean
2023
$(MAKE) -C examples clean
24+
$(MAKE) -C doc clean
2125

doc/Makefile

+10-3
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,23 @@
1616
# You should have received a copy of the GNU General Public License
1717
# along with simavr. If not, see <http://www.gnu.org/licenses/>.
1818

19-
# you need Graphviz, ruby and exuberant ctags here.
20-
# this is not generated in the normal code build
19+
# For the callgraph, you need Graphviz, ruby and exuberant ctags.
20+
# The manual requires latex including additional packages (acronym, graphicx, fancyvrb, ...).
21+
# This is not generated in the normal code build
2122

22-
all: simavr_callgraph.pdf
23+
.PHONY: manual
24+
25+
all: simavr_callgraph.pdf manual
2326

2427
simavr_callgraph.pdf:
2528
ctags -f .tags ../simavr/sim/sim_*.[ch] ../simavr/sim/run_*.[ch] 2>/dev/null && \
2629
ruby ./tags_to_dot.rb .tags \
2730
../simavr/sim/sim_*.c ../simavr/sim/run_*.c >.tags.dot && \
2831
dot -Tpdf .tags.dot -o $@
2932

33+
manual:
34+
$(MAKE) -C manual
35+
3036
clean:
3137
rm -f .tags*
38+
$(MAKE) -C manual clean

0 commit comments

Comments
 (0)