Rev 161 | Rev 165 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
22 | jermar | 1 | # |
2 | # Set DOT to YES if you want to have graphs in the documentation. |
||
3 | # |
||
4 | DOT=NO |
||
5 | #DOT=YES |
||
6 | |||
7 | SRCDIR=$(shell cd ../../HelenOS/; pwd) |
||
8 | DOCDIR=$(shell pwd) |
||
9 | |||
158 | cejka | 10 | TARGETS=kernel uspace |
22 | jermar | 11 | |
12 | CLEAN_TARGETS := $(addprefix clean-, $(TARGETS)) |
||
13 | |||
14 | .PHONY: default all $(TARGETS) $(CLEAN_TARGETS) clean |
||
15 | |||
16 | usage: |
||
17 | @echo Usage: make TARGET |
||
18 | @echo List of available TARGETs: |
||
19 | @echo all clean $(TARGETS) $(CLEAN_TARGETS) |
||
20 | |||
21 | all: $(TARGETS) |
||
22 | |||
23 | clean: $(CLEAN_TARGETS) |
||
24 | |||
25 | $(TARGETS): |
||
26 | cd $(SRCDIR); DOCDIR=$(DOCDIR) SRCDIR=$(SRCDIR) DOT=$(DOT) doxygen $(DOCDIR)/Doxyfile-$@ |
||
164 | jermar | 27 | cp doxygen.css $(DOCDIR)/doc/$@/html |
28 | patch $(DOCDIR)/doc/$@/html/modules.html modules.patch |
||
22 | jermar | 29 | |
30 | $(CLEAN_TARGETS): |
||
31 | rm -rf $(DOCDIR)/doc/$(shell echo $@ | sed -n "s/^clean-\(.*\)$$/\1/p")/* |