Go to most recent revision | Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
2351 | kebrt | 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 | KERNEL_TARGETS=kernel-amd64 kernel-ia32 kernel-ia64 kernel-mips32 kernel-ppc32 kernel-ppc64 kernel-sparc64 kernel-arm32 |
||
11 | USPACE_TARGETS=uspace-amd64 uspace-ia32 uspace-ia64 uspace-mips32 uspace-ppc32 uspace-arm32 |
||
12 | BOOT_TARGETS=boot-arm32 |
||
13 | |||
14 | TARGETS=$(KERNEL_TARGETS) $(USPACE_TARGETS) $(BOOT_TARGETS) |
||
15 | |||
16 | CLEAN_TARGETS := $(addprefix clean-, $(TARGETS)) |
||
17 | |||
18 | .PHONY: default all $(TARGETS) $(CLEAN_TARGETS) clean |
||
19 | |||
20 | usage: |
||
21 | @echo Usage: make TARGET |
||
22 | @echo List of available TARGETs: |
||
23 | @echo all clean $(TARGETS) $(CLEAN_TARGETS) |
||
24 | |||
25 | all: $(TARGETS) |
||
26 | |||
27 | clean: $(CLEAN_TARGETS) |
||
28 | |||
29 | kernel: $(KERNEL_TARGETS) |
||
30 | |||
31 | uspace: $(USPACE_TARGETS) |
||
32 | |||
33 | boot: $(BOOT_TARGETS) |
||
34 | |||
35 | $(TARGETS): |
||
36 | cd $(SRCDIR); DOCDIR=$(DOCDIR) SRCDIR=$(SRCDIR) DOT=$(DOT) doxygen $(DOCDIR)/Doxyfile-$@ |
||
37 | |||
38 | $(CLEAN_TARGETS): |
||
39 | rm -rf $(DOCDIR)/doc/$(shell echo $@ | sed -n "s/^clean-\(.*\)$$/\1/p")/* |