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 10LEVEL=../../.. 11 12ifneq (,$(strip $(wildcard $(LEVEL)/Makefile.config))) 13include $(LEVEL)/Makefile.config 14else 15CP=cp 16RM=rm 17endif 18 19DOC_DIR=../../../docs 20RST2HTML=rst2html --stylesheet=llvm.css --link-stylesheet 21 22all : LLVMC-Reference.html LLVMC-Tutorial.html 23 $(CP) LLVMC-Reference.html $(DOC_DIR)/CompilerDriver.html 24 $(CP) LLVMC-Tutorial.html $(DOC_DIR)/CompilerDriverTutorial.html 25 26LLVMC-Tutorial.html : LLVMC-Tutorial.rst 27 $(RST2HTML) $< $@ 28 29LLVMC-Reference.html : LLVMC-Reference.rst 30 $(RST2HTML) $< $@ 31 32clean : 33 $(RM) LLVMC-Tutorial.html LLVMC-Reference.html 34