Silence -Wunused-variable in release builds.
[llvm/stm8.git] / tools / llvmc / doc / Makefile
blobef98767e7b48ecb13b6ecca5f2cbd687befa1029
1 ##===- tools/llvmc/doc/Makefile ----------------------------*- Makefile -*-===##
3 # The LLVM Compiler Infrastructure
5 # This file is distributed under the University of Illinois Open Source
6 # License. See LICENSE.TXT for details.
8 ##===----------------------------------------------------------------------===##
10 LEVEL=../../..
12 ifneq (,$(strip $(wildcard $(LEVEL)/Makefile.config)))
13 include $(LEVEL)/Makefile.config
14 else
15 CP=cp
16 RM=rm
17 endif
19 DOC_DIR=../../../docs
20 RST2HTML=rst2html --stylesheet=llvm.css --link-stylesheet
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
26 LLVMC-Tutorial.html : LLVMC-Tutorial.rst
27 $(RST2HTML) $< $@
29 LLVMC-Reference.html : LLVMC-Reference.rst
30 $(RST2HTML) $< $@
32 clean :
33 $(RM) LLVMC-Tutorial.html LLVMC-Reference.html