Use correct file for the llvmc tutorial.
[oota-llvm.git] / tools / llvmc / doc / Makefile
1 ##===- tools/llvmc/doc/Makefile ----------------------------*- Makefile -*-===##
2 #
3 #                     The LLVM Compiler Infrastructure
4 #
5 # This file is distributed under the University of Illinois Open Source
6 # License. See LICENSE.TXT for details.
7 #
8 ##===----------------------------------------------------------------------===##
9
10 LEVEL=../../..
11 include $(LEVEL)/Makefile.config
12
13 RST_CSS=llvm-rst.css
14 DOC_DIR=../../../docs
15 RST2HTML=rst2html --stylesheet=$(RST_CSS) --link-stylesheet
16
17 all : LLVMC-Reference.html LLVMC-Tutorial.html $(RST_CSS)
18         $(CP) $(RST_CSS) $(DOC_DIR)/$(RST_CSS)
19         $(CP) LLVMC-Reference.html $(DOC_DIR)/CompilerDriver.html
20         $(CP) LLVMC-Tutorial.html $(DOC_DIR)/CompilerDriverTutorial.html
21
22 LLVMC-Tutorial.html : LLVMC-Tutorial.rst $(RST_CSS)
23         $(RST2HTML) $< $@
24
25 LLVMC-Reference.html : LLVMC-Reference.rst $(RST_CSS)
26         $(RST2HTML) $< $@
27
28 clean :
29         $(RM) LLVMC-Tutorial.html LLVMC-Reference.html