Page MenuHomec4science

Makefile
No OneTemporary

File Metadata

Created
Tue, Jan 7, 08:02

Makefile

DOXYGEN = doxygen
SPHINX = sphinx-build
VERSION = $(shell ./version.pl < ../SConstruct)
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 $@
( cat $< && echo PROJECT_NUMBER=$(VERSION) ) | $(DOXYGEN) -
$(SPHINX_BUILD_DIR):$(SPHINX_SOURCES) $(DOXYGEN_BUILD_DIR)
@mkdir -p $@
$(SPHINX) -b html $(SPHINX_SOURCE_DIR) $@
clean:
$(RM) -r $(BUILD_DIR)

Event Timeline