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