Make it easier to regenerate docs when srcdir != objdir.
authorMikhail Glushenkov <foldr@codedgers.com>
Wed, 23 Dec 2009 12:50:03 +0000 (12:50 +0000)
committerMikhail Glushenkov <foldr@codedgers.com>
Wed, 23 Dec 2009 12:50:03 +0000 (12:50 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92000 91177308-0d34-0410-b5e6-96231b3b80d8

tools/llvmc/doc/Makefile

index 65e6b9b5e0fe72751a234e72432e77cf4212fbd6..ef98767e7b48ecb13b6ecca5f2cbd687befa1029 100644 (file)
@@ -8,7 +8,13 @@
 ##===----------------------------------------------------------------------===##
 
 LEVEL=../../..
+
+ifneq (,$(strip $(wildcard $(LEVEL)/Makefile.config)))
 include $(LEVEL)/Makefile.config
+else
+CP=cp
+RM=rm
+endif
 
 DOC_DIR=../../../docs
 RST2HTML=rst2html --stylesheet=llvm.css --link-stylesheet