2008-11-25 21:38:12 +00:00
|
|
|
##===- tools/llvmc/doc/Makefile ----------------------------*- Makefile -*-===##
|
|
|
|
#
|
|
|
|
# The LLVM Compiler Infrastructure
|
|
|
|
#
|
|
|
|
# This file is distributed under the University of Illinois Open Source
|
|
|
|
# License. See LICENSE.TXT for details.
|
|
|
|
#
|
|
|
|
##===----------------------------------------------------------------------===##
|
|
|
|
|
2008-12-11 23:24:40 +00:00
|
|
|
LEVEL=../../..
|
2009-12-23 12:50:03 +00:00
|
|
|
|
|
|
|
ifneq (,$(strip $(wildcard $(LEVEL)/Makefile.config)))
|
2008-12-11 23:24:40 +00:00
|
|
|
include $(LEVEL)/Makefile.config
|
2009-12-23 12:50:03 +00:00
|
|
|
else
|
|
|
|
CP=cp
|
|
|
|
RM=rm
|
|
|
|
endif
|
2008-11-25 21:38:12 +00:00
|
|
|
|
2008-12-11 23:24:40 +00:00
|
|
|
DOC_DIR=../../../docs
|
2008-12-13 17:50:58 +00:00
|
|
|
RST2HTML=rst2html --stylesheet=llvm.css --link-stylesheet
|
2008-11-25 21:38:12 +00:00
|
|
|
|
2008-12-13 17:50:58 +00:00
|
|
|
all : LLVMC-Reference.html LLVMC-Tutorial.html
|
2008-12-11 23:24:40 +00:00
|
|
|
$(CP) LLVMC-Reference.html $(DOC_DIR)/CompilerDriver.html
|
2008-12-11 23:33:33 +00:00
|
|
|
$(CP) LLVMC-Tutorial.html $(DOC_DIR)/CompilerDriverTutorial.html
|
2008-12-11 23:24:40 +00:00
|
|
|
|
2008-12-13 17:50:58 +00:00
|
|
|
LLVMC-Tutorial.html : LLVMC-Tutorial.rst
|
2008-11-25 21:38:12 +00:00
|
|
|
$(RST2HTML) $< $@
|
|
|
|
|
2008-12-13 17:50:58 +00:00
|
|
|
LLVMC-Reference.html : LLVMC-Reference.rst
|
2008-11-25 21:38:12 +00:00
|
|
|
$(RST2HTML) $< $@
|
|
|
|
|
|
|
|
clean :
|
2008-12-11 23:24:40 +00:00
|
|
|
$(RM) LLVMC-Tutorial.html LLVMC-Reference.html
|