llvm-6502/tools/llvmc/doc/Makefile
Mikhail Glushenkov 99a3a2c44c Use correct file for the llvmc tutorial.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60910 91177308-0d34-0410-b5e6-96231b3b80d8
2008-12-11 23:33:33 +00:00

30 lines
915 B
Makefile

##===- 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.
#
##===----------------------------------------------------------------------===##
LEVEL=../../..
include $(LEVEL)/Makefile.config
RST_CSS=llvm-rst.css
DOC_DIR=../../../docs
RST2HTML=rst2html --stylesheet=$(RST_CSS) --link-stylesheet
all : LLVMC-Reference.html LLVMC-Tutorial.html $(RST_CSS)
$(CP) $(RST_CSS) $(DOC_DIR)/$(RST_CSS)
$(CP) LLVMC-Reference.html $(DOC_DIR)/CompilerDriver.html
$(CP) LLVMC-Tutorial.html $(DOC_DIR)/CompilerDriverTutorial.html
LLVMC-Tutorial.html : LLVMC-Tutorial.rst $(RST_CSS)
$(RST2HTML) $< $@
LLVMC-Reference.html : LLVMC-Reference.rst $(RST_CSS)
$(RST2HTML) $< $@
clean :
$(RM) LLVMC-Tutorial.html LLVMC-Reference.html