Regenerate configured Makefile if Makefile.in or config.status have changed

This commit is contained in:
Karl Wette 2014-04-25 17:01:14 +02:00
commit 96153c7c0a
6 changed files with 35 additions and 4 deletions

View file

@ -21,6 +21,10 @@
# 'method' describes what is being built.
#---------------------------------------------------------------
# Regenerate Makefile if Makefile.in or config.status have changed.
Makefile: @srcdir@/Makefile.in ../config.status
cd .. && $(SHELL) ./config.status Examples/Makefile
TARGET =
CC = @CC@
CXX = @CXX@

View file

@ -71,6 +71,13 @@ LIBPREFIX = lib
ACTION = check
INTERFACEDIR = $(top_srcdir)/$(EXAMPLES)/$(TEST_SUITE)/
# 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
#
# Please keep test cases in alphabetical order.
# Note that any whitespace after the last entry in each list will break make

View file

@ -31,6 +31,9 @@ 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