Subversion Repositories HelenOS-doc

Rev

Rev 158 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed

#
# Set DOT to YES if you want to have graphs in the documentation.
#
DOT=NO
#DOT=YES

SRCDIR=$(shell cd ../../HelenOS/; pwd)
DOCDIR=$(shell pwd)

TARGETS=generic-kernel generic-uspace amd64-kernel amd64-uspace ia32-kernel ia32-uspace\
    ia64-kernel ia64-uspace mips32-kernel mips32-uspace ppc32-kernel ppc32-uspace\
    ppc64-kernel sparc64-kernel

CLEAN_TARGETS := $(addprefix clean-, $(TARGETS))

.PHONY: default all $(TARGETS) $(CLEAN_TARGETS) clean

usage:
    @echo Usage: make TARGET
    @echo List of available TARGETs:
    @echo all clean $(TARGETS) $(CLEAN_TARGETS)

all: $(TARGETS)

clean: $(CLEAN_TARGETS)

$(TARGETS):
    cd $(SRCDIR); DOCDIR=$(DOCDIR) SRCDIR=$(SRCDIR) DOT=$(DOT) doxygen $(DOCDIR)/Doxyfile-$@
    $(MAKE) -C $(DOCDIR)/doc/$@/latex

$(CLEAN_TARGETS):
    rm -rf $(DOCDIR)/doc/$(shell echo $@ | sed -n "s/^clean-\(.*\)$$/\1/p")/*