Regenerate configured Makefile if Makefile.in or config.status have changed
This commit is contained in:
parent
6fc07c5dc9
commit
96153c7c0a
6 changed files with 35 additions and 4 deletions
|
|
@ -27,6 +27,10 @@ HEADERS = ccache.h mdfour.h
|
|||
|
||||
all: $(PACKAGE_NAME)$(EXEEXT)
|
||||
|
||||
# Regenerate Makefile if Makefile.in or config.status have changed.
|
||||
Makefile: $(srcdir)/Makefile.in ./config.status
|
||||
$(SHELL) ./config.status
|
||||
|
||||
# Note that HTML documentation is actually generated and used from the main SWIG documentation Makefile
|
||||
docs: $(PACKAGE_NAME).1 web/ccache-man.html
|
||||
|
||||
|
|
|
|||
|
|
@ -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@
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -243,11 +243,13 @@ check-%-examples :
|
|||
|
||||
# individual example
|
||||
%.actionexample:
|
||||
@cd Examples && $(MAKE) Makefile
|
||||
@echo $(ACTION)ing Examples/$(LANGUAGE)/$*
|
||||
@(cd Examples/$(LANGUAGE)/$* && $(MAKE) $(FLAGS) $(chk-set-env) $(ACTION) RUNPIPE=$(RUNPIPE))
|
||||
|
||||
# gcj individual example
|
||||
java.actionexample:
|
||||
@cd Examples && $(MAKE) Makefile
|
||||
@if $(skip-gcj); then \
|
||||
echo "skipping Examples/$(LANGUAGE)/java $(ACTION) (gcj test)"; \
|
||||
else \
|
||||
|
|
@ -283,6 +285,9 @@ check-test-suite: \
|
|||
check-javascript-test-suite
|
||||
|
||||
check-%-test-suite:
|
||||
@if test -d Examples/test-suite/$*; then \
|
||||
cd Examples/test-suite/$* && $(MAKE) Makefile; \
|
||||
fi
|
||||
@if test -z "$(skip-$*)"; then \
|
||||
echo $* unknown; \
|
||||
exit 1; \
|
||||
|
|
|
|||
|
|
@ -11,6 +11,8 @@
|
|||
# interpreter (see 'Tools/javascript').
|
||||
#
|
||||
# ----------------------------------------------------------------
|
||||
all: javascript
|
||||
|
||||
CC = @CC@
|
||||
# HACK: under OSX a g++ compiled interpreter is seg-faulting when loading module libraries
|
||||
# with 'c++' it works... probably some missing flags?
|
||||
|
|
@ -29,15 +31,21 @@ JSCXXSHARED = @JSCXXSHARED@
|
|||
JSV8ENABLED = @JSV8ENABLED@
|
||||
JSCENABLED = @JSCENABLED@
|
||||
|
||||
srcdir = @srcdir@
|
||||
|
||||
# Regenerate Makefile if Makefile.in or config.status have changed.
|
||||
Makefile: $(srcdir)/Makefile.in ../../config.status
|
||||
cd ../.. && $(SHELL) ./config.status Tools/javascript/Makefile
|
||||
|
||||
# These settings are provided by 'configure' (see '/configure.in')
|
||||
ifeq (1, $(JSV8ENABLED))
|
||||
JS_INTERPRETER_SRC_V8 = v8_shell.cxx
|
||||
JS_INTERPRETER_ENABLE_V8 = -DENABLE_V8
|
||||
JS_INTERPRETER_SRC_V8 = v8_shell.cxx
|
||||
JS_INTERPRETER_ENABLE_V8 = -DENABLE_V8
|
||||
endif
|
||||
|
||||
ifeq (1, $(JSCENABLED))
|
||||
JS_INTERPRETER_SRC_JSC = jsc_shell.cxx
|
||||
JS_INTERPRETER_ENABLE_JSC = -DENABLE_JSC
|
||||
JS_INTERPRETER_SRC_JSC = jsc_shell.cxx
|
||||
JS_INTERPRETER_ENABLE_JSC = -DENABLE_JSC
|
||||
endif
|
||||
|
||||
JS_INTERPRETER_DEFINES = $(JS_INTERPRETER_ENABLE_JSC) $(JS_INTERPRETER_ENABLE_V8)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue