2003-10-21 16:33:46 +02:00
|
|
|
##===- docs/Makefile ---------------------------------------*- Makefile -*-===##
|
|
|
|
#
|
|
|
|
# The LLVM Compiler Infrastructure
|
|
|
|
#
|
|
|
|
# This file was developed by the LLVM research group and is distributed under
|
|
|
|
# the University of Illinois Open Source License. See LICENSE.TXT for details.
|
|
|
|
#
|
|
|
|
##===----------------------------------------------------------------------===##
|
2002-01-30 22:20:23 +01:00
|
|
|
|
2004-11-29 05:47:35 +01:00
|
|
|
LEVEL := ..
|
|
|
|
DIRS := CommandGuide
|
|
|
|
|
|
|
|
include $(LEVEL)/Makefile.common
|
|
|
|
|
2005-01-16 03:21:29 +01:00
|
|
|
HTML := $(wildcard $(PROJ_SRC_DIR)/*.html) \
|
|
|
|
$(wildcard $(PROJ_SRC_DIR)/*.css)
|
|
|
|
IMAGES := $(wildcard $(PROJ_SRC_DIR)/img/*.*)
|
2005-01-11 07:26:27 +01:00
|
|
|
DOXYFILES := doxygen.cfg.in doxygen.css doxygen.footer doxygen.header \
|
|
|
|
doxygen.intro
|
2004-11-29 05:47:35 +01:00
|
|
|
EXTRA_DIST := $(HTML) $(DOXYFILES) llvm.css CommandGuide img
|
|
|
|
|
|
|
|
.PHONY: install-html install-doxygen doxygen
|
|
|
|
|
|
|
|
ifeq ($(ENABLE_DOXYGEN),1)
|
|
|
|
install-local:: install-html install-doxygen
|
|
|
|
else
|
|
|
|
install-local:: install-html
|
|
|
|
endif
|
|
|
|
|
2005-01-16 03:21:29 +01:00
|
|
|
install-html: $(PROJ_OBJ_DIR)/html.tar.gz
|
2004-11-29 05:47:35 +01:00
|
|
|
$(Echo) Installing HTML documentation
|
2005-01-16 03:21:29 +01:00
|
|
|
$(Verb) $(INSTALL) -d $(PROJ_docsdir)/html
|
|
|
|
$(Verb) $(INSTALL) -d $(PROJ_docsdir)/html/img
|
|
|
|
$(Verb) $(INSTALL) -C $(HTML) $(PROJ_docsdir)/html
|
|
|
|
$(Verb) $(INSTALL) -C $(IMAGES) $(PROJ_docsdir)/html/img
|
|
|
|
$(Verb) $(INSTALL) -C $(PROJ_OBJ_DIR)/html.tar.gz $(PROJ_docsdir)
|
2004-11-29 05:47:35 +01:00
|
|
|
|
2005-01-16 03:21:29 +01:00
|
|
|
$(PROJ_OBJ_DIR)/html.tar.gz: $(HTML)
|
2004-11-29 05:47:35 +01:00
|
|
|
$(Echo) Packaging HTML documentation
|
2005-01-16 03:21:29 +01:00
|
|
|
$(Verb) $(RM) -rf $@ $(PROJ_OBJ_DIR)/html.tar
|
|
|
|
$(Verb) cd $(PROJ_SRC_DIR) && \
|
|
|
|
$(TAR) cf $(PROJ_OBJ_DIR)/html.tar *.html
|
|
|
|
$(Verb) $(GZIP) $(PROJ_OBJ_DIR)/html.tar
|
2004-11-29 05:47:35 +01:00
|
|
|
|
|
|
|
install-doxygen: doxygen
|
|
|
|
$(Echo) Installing doxygen documentation
|
|
|
|
$(Echo) Installing doxygen documentation
|
2005-01-16 03:21:29 +01:00
|
|
|
$(Verb) $(INSTALL) -d $(PROJ_docsdir)/html/doxygen
|
|
|
|
$(Verb) $(INSTALL) $(PROJ_OBJ_DIR)/doxygen.tar.gz $(PROJ_docsdir)
|
|
|
|
$(Verb) cd $(PROJ_OBJ_DIR)/doxygen && \
|
2004-11-29 05:47:35 +01:00
|
|
|
$(FIND) . -type f -exec \
|
2005-01-16 03:21:29 +01:00
|
|
|
$(INSTALL) -C {} $(PROJ_docsdir)/html/doxygen \;
|
2004-11-29 05:47:35 +01:00
|
|
|
|
2005-01-16 03:21:29 +01:00
|
|
|
doxygen: $(PROJ_OBJ_DIR)/doxygen.tar.gz
|
2004-11-29 05:47:35 +01:00
|
|
|
|
2005-01-16 03:21:29 +01:00
|
|
|
$(PROJ_OBJ_DIR)/doxygen.tar.gz: $(DOXYFILES) $(PROJ_OBJ_DIR)/doxygen.cfg
|
2004-11-29 05:47:35 +01:00
|
|
|
$(Echo) Building doxygen documentation
|
2005-01-16 03:21:29 +01:00
|
|
|
$(Verb) if test -e $(PROJ_OBJ_DIR)/doxygen ; then \
|
|
|
|
$(RM) -rf $(PROJ_OBJ_DIR)/doxygen ; \
|
2005-01-11 07:26:27 +01:00
|
|
|
fi
|
2005-01-16 03:21:29 +01:00
|
|
|
$(Verb) $(DOXYGEN) $(PROJ_OBJ_DIR)/doxygen.cfg
|
2004-11-29 05:47:35 +01:00
|
|
|
$(Echo) Packaging doxygen documentation
|
2005-01-16 03:21:29 +01:00
|
|
|
$(Verb) $(RM) -rf $@ $(PROJ_OBJ_DIR)/doxygen.tar
|
|
|
|
$(Verb) $(TAR) cf $(PROJ_OBJ_DIR)/doxygen.tar doxygen
|
|
|
|
$(Verb) $(GZIP) $(PROJ_OBJ_DIR)/doxygen.tar
|
2004-11-29 05:47:35 +01:00
|
|
|
|