From 124f30dbbc30b0153e1070a5db09e577b4af1919 Mon Sep 17 00:00:00 2001 From: Miodrag Milanovic Date: Thu, 8 Dec 2016 11:46:15 +0100 Subject: Enable building projects that are separate of MAME but use same core and lives in separate git tree (nw) --- makefile | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'makefile') diff --git a/makefile b/makefile index f342c481ac5..1b3e5851e5b 100644 --- a/makefile +++ b/makefile @@ -217,6 +217,10 @@ endif # build scripts will be run from # scripts/target/$(TARGET)/$(SUBTARGET).lua #------------------------------------------------- +ifdef PROJECT +PARAMS += --PROJECT='$(PROJECT)' +TARGET := $(PROJECT) +endif ifndef TARGET TARGET := mame @@ -800,8 +804,12 @@ SCRIPTS += scripts/target/$(TARGET)/mess.lua endif ifndef SOURCES +ifdef PROJECT +SCRIPTS += projects/$(PROJECT)/scripts/target/$(TARGET)/$(SUBTARGET_FULL).lua +else SCRIPTS += scripts/target/$(TARGET)/$(SUBTARGET_FULL).lua endif +endif ifdef REGENIE SCRIPTS+= regenie -- cgit v1.2.3