Neaten up test-suite Makefile regeneration

This commit is contained in:
William S Fulton 2014-05-15 22:04:54 +01:00
commit 8ece62b945
2 changed files with 3 additions and 9 deletions

View file

@ -74,11 +74,8 @@ SRCDIR = $(srcdir)/
SCRIPTDIR = $(srcdir)
# Regenerate Makefile if Makefile.in or config.status have changed.
ifeq (,$(TEST_SUITE_SUBDIR))
TEST_SUITE_SUBDIR = $(LANGUAGE)
endif
Makefile: $(srcdir)/Makefile.in ../../../config.status
cd ../../../ && $(SHELL) ./config.status $(EXAMPLES)/$(TEST_SUITE)/$(TEST_SUITE_SUBDIR)/Makefile
cd ../../../ && $(SHELL) ./config.status $(EXAMPLES)/$(TEST_SUITE)/$(LANGUAGE)/Makefile
#
# Please keep test cases in alphabetical order.

View file

@ -13,7 +13,7 @@
# file (.stderr) in addition to the test case itself.
#######################################################################
LANGUAGE = python
LANGUAGE = errors
ERROR_EXT = newerr
# Portable dos2unix / todos for stripping CR
TODOS = tr -d '\r'
@ -35,9 +35,6 @@ C_ERROR_TEST_CASES := $(filter-out $(CPP_ERROR_TEST_CASES), $(ALL_ERROR_TEST_CAS
ERROR_TEST_CASES := $(CPP_ERROR_TEST_CASES:=.cpptest) \
$(C_ERROR_TEST_CASES:=.ctest)
# For rebuilding Makefile from Makefile.in in common.mk
TEST_SUITE_SUBDIR = errors
include $(srcdir)/../common.mk
@ -56,5 +53,5 @@ include $(srcdir)/../common.mk
@exit 0
clean:
$(MAKE) -f $(top_builddir)/$(EXAMPLES)/Makefile $(LANGUAGE)_clean
$(MAKE) -f $(top_builddir)/$(EXAMPLES)/Makefile python_clean
@rm -f *.$(ERROR_EXT) *.py