Subversion Repositories HelenOS-doc

Rev

Rev 22 | Rev 161 | 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 uspace amd64-kernel ia32-kernel\
    ia64-kernel mips32-kernel ppc32-kernel\
    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")/*