[llvm-commits] [test-suite] r57768 - /test-suite/trunk/MultiSource/Applications/lua/Makefile
Chris Lattner
sabre at nondot.org
Sat Oct 18 11:21:33 PDT 2008
Author: lattner
Date: Sat Oct 18 13:21:31 2008
New Revision: 57768
URL: http://llvm.org/viewvc/llvm-project?rev=57768&view=rev
Log:
make this program work when srcdir != objdir, patch by
Julien Lerouge!
Fixes PR2912
Modified:
test-suite/trunk/MultiSource/Applications/lua/Makefile
Modified: test-suite/trunk/MultiSource/Applications/lua/Makefile
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/MultiSource/Applications/lua/Makefile?rev=57768&r1=57767&r2=57768&view=diff
==============================================================================
--- test-suite/trunk/MultiSource/Applications/lua/Makefile (original)
+++ test-suite/trunk/MultiSource/Applications/lua/Makefile Sat Oct 18 13:21:31 2008
@@ -9,7 +9,7 @@
CPPFLAGS += -DLUA_USE_POSIX
PROG = lua
-RUN_OPTIONS = alltests.lua <in
+RUN_OPTIONS = alltests.lua "\<in"
include $(LEVEL)/Makefile.config
@@ -17,7 +17,14 @@
DIFFPROG := $(PROGDIR)/DiffOutput.sh "diff "
# generate input files
-lua.c: .input_generated
+$(PROJ_SRC_DIR)/lua.c: .input_generated
.input_generated:
+ if [ ! -f ./generate_inputs.sh ]; \
+ then \
+ cp -f $(PROJ_SRC_DIR)/generate_inputs.sh . ; \
+ cp -f -r $(PROJ_SRC_DIR)/{test,bench,input} . ; \
+ cp -f $(PROJ_SRC_DIR)/*.lua . ; \
+ fi
./generate_inputs.sh
+
More information about the llvm-commits
mailing list