blob: 65e6b9b5e0fe72751a234e72432e77cf4212fbd6 [file] [log] [blame]
Mikhail Glushenkovc7e56fe2008-11-25 21:38:12 +00001##===- 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
Mikhail Glushenkovac251f22008-12-11 23:24:40 +000010LEVEL=../../..
11include $(LEVEL)/Makefile.config
Mikhail Glushenkovc7e56fe2008-11-25 21:38:12 +000012
Mikhail Glushenkovac251f22008-12-11 23:24:40 +000013DOC_DIR=../../../docs
Mikhail Glushenkov834969b2008-12-13 17:50:58 +000014RST2HTML=rst2html --stylesheet=llvm.css --link-stylesheet
Mikhail Glushenkovc7e56fe2008-11-25 21:38:12 +000015
Mikhail Glushenkov834969b2008-12-13 17:50:58 +000016all : LLVMC-Reference.html LLVMC-Tutorial.html
Mikhail Glushenkovac251f22008-12-11 23:24:40 +000017 $(CP) LLVMC-Reference.html $(DOC_DIR)/CompilerDriver.html
Mikhail Glushenkov57c849c2008-12-11 23:33:33 +000018 $(CP) LLVMC-Tutorial.html $(DOC_DIR)/CompilerDriverTutorial.html
Mikhail Glushenkovac251f22008-12-11 23:24:40 +000019
Mikhail Glushenkov834969b2008-12-13 17:50:58 +000020LLVMC-Tutorial.html : LLVMC-Tutorial.rst
Mikhail Glushenkovc7e56fe2008-11-25 21:38:12 +000021 $(RST2HTML) $< $@
22
Mikhail Glushenkov834969b2008-12-13 17:50:58 +000023LLVMC-Reference.html : LLVMC-Reference.rst
Mikhail Glushenkovc7e56fe2008-11-25 21:38:12 +000024 $(RST2HTML) $< $@
25
26clean :
Mikhail Glushenkovac251f22008-12-11 23:24:40 +000027 $(RM) LLVMC-Tutorial.html LLVMC-Reference.html