aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorD G Turner2013-11-07 12:58:33 +0100
committerD G Turner2013-11-24 00:45:38 +0000
commitaa947c9474ad83aa9315bc585d1f0b79060fee61 (patch)
tree933775377eea4243d9cd8d0fc7c4a2a7098cb840 /Makefile
parentc63b2b2b2c33aa0a1e883cf5c722d647f2cf0c6f (diff)
downloadscummvm-rg350-aa947c9474ad83aa9315bc585d1f0b79060fee61.tar.gz
scummvm-rg350-aa947c9474ad83aa9315bc585d1f0b79060fee61.tar.bz2
scummvm-rg350-aa947c9474ad83aa9315bc585d1f0b79060fee61.zip
BUILD: Split configure.engines down to a single file per engine.
This is the first part of allowing engines to be added dynamically. They are placed into a folder in engines/ which must contain a file named "configure.engine" to add the engine, which is pulled into the top level configure script automatically.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 09c38b2598..2ff67eef2a 100644
--- a/Makefile
+++ b/Makefile
@@ -82,7 +82,8 @@ EXECUTABLE := $(EXEPRE)scummvm$(EXEEXT)
include $(srcdir)/Makefile.common
# check if configure has been run or has been changed since last run
-config.h config.mk: $(srcdir)/configure $(srcdir)/engines/configure.engines
+ENGINE_SUBDIRS_CONFIGURE := $(wildcard $(srcdir)/engines/*/configure.engine)
+config.h config.mk: $(srcdir)/configure $(ENGINE_SUBDIRS_CONFIGURE)
ifeq "$(findstring config.mk,$(MAKEFILE_LIST))" "config.mk"
@echo "Running $(srcdir)/configure with the last specified parameters"
@sleep 2