Rev 158 | Go to most recent revision | Details | 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 | |||
10 | TARGETS=generic-kernel generic-uspace amd64-kernel amd64-uspace ia32-kernel ia32-uspace\ |
||
11 | ia64-kernel ia64-uspace mips32-kernel mips32-uspace ppc32-kernel ppc32-uspace\ |
||
12 | ppc64-kernel sparc64-kernel |
||
13 | |||
14 | CLEAN_TARGETS := $(addprefix clean-, $(TARGETS)) |
||
15 | |||
16 | .PHONY: default all $(TARGETS) $(CLEAN_TARGETS) clean |
||
17 | |||
18 | usage: |
||
19 | @echo Usage: make TARGET |
||
20 | @echo List of available TARGETs: |
||
21 | @echo all clean $(TARGETS) $(CLEAN_TARGETS) |
||
22 | |||
23 | all: $(TARGETS) |
||
24 | |||
25 | clean: $(CLEAN_TARGETS) |
||
26 | |||
27 | $(TARGETS): |
||
28 | cd $(SRCDIR); DOCDIR=$(DOCDIR) SRCDIR=$(SRCDIR) DOT=$(DOT) doxygen $(DOCDIR)/Doxyfile-$@ |
||
29 | $(MAKE) -C $(DOCDIR)/doc/$@/latex |
||
30 | |||
31 | $(CLEAN_TARGETS): |
||
32 | rm -rf $(DOCDIR)/doc/$(shell echo $@ | sed -n "s/^clean-\(.*\)$$/\1/p")/* |