Page MenuHomec4science

Makefile
No OneTemporary

File Metadata

Created
Fri, Nov 15, 17:40

Makefile

DOXYGEN = doxygen
SPHINX = sphinx-build
SPHINX_SOURCE_DIR = sphinx/source
SPHINX_SOURCES := $(wildcard $(SPHINX_SOURCE_DIR)/*.rst)
SPHINX_SOURCES += $(SPHINX_SOURCE_DIR)/conf.py
BUILD_DIR = build
DOXYGEN_BUILD_DIR = $(BUILD_DIR)/doxygen
SPHINX_BUILD_DIR = $(BUILD_DIR)/sphinx/html
# Default target
all:doxygen sphinx
# Phony targets for aliases
.PHONY:doxygen sphinx clean
# Target aliases
doxygen:$(DOXYGEN_BUILD_DIR)
sphinx:$(SPHINX_BUILD_DIR)
# Build doxygen documentation
$(DOXYGEN_BUILD_DIR):doxygen/Doxyfile
@mkdir -p $@
$(DOXYGEN) $<
$(SPHINX_BUILD_DIR):$(SPHINX_SOURCES) $(DOXYGEN_BUILD_DIR)
@mkdir -p $@
$(SPHINX) -b html $(SPHINX_SOURCE_DIR) $@
clean:
$(RM) -r $(BUILD_DIR)

Event Timeline