Fix cleanup configuration for javascript test-suite.

This commit is contained in:
Oliver Buchtala 2013-09-04 12:47:24 +02:00
commit 54dd7e96c0

View file

@ -91,7 +91,11 @@ generate_cpp_wrapper = \
$(SWIG) -c++ -javascript -node -o $*/$*_wrap.cxx ../$*.i $(SWIG) -c++ -javascript -node -o $*/$*_wrap.cxx ../$*.i
build_module = \ build_module = \
cd $* && node-gyp configure build && cd .. if [ ! -f $(srcdir)/$*/build/Makefile ]; then \
cd $* && node-gyp configure build && cd ..; \
else \
cd $* && node-gyp build && cd ..; \
fi
# Runs the testcase. A testcase is only run if # Runs the testcase. A testcase is only run if
# a file is found which has _runme.js appended after the testcase name. # a file is found which has _runme.js appended after the testcase name.
@ -102,6 +106,6 @@ run_testcase = \
# Clean # Clean
%.clean: %.clean:
rm -rf $*
clean: clean:
$(MAKE) -f $(top_builddir)/$(EXAMPLES)/Makefile javascript_clean