Parse user.config from the makefile.
Also removes unused AUTMATIC_ENGINE_MANAGEMENT variable.
This commit is contained in:
parent
42a83298bd
commit
75dbff29eb
8
Makefile
8
Makefile
@ -23,11 +23,9 @@
|
||||
.DEFAULT_GOAL := build
|
||||
|
||||
VERSION = $(shell git name-rev --name-only --tags --no-undefined HEAD 2>/dev/null || echo git-`git rev-parse --short HEAD`)
|
||||
MOD_ID = $(shell awk -F= '/MOD_ID/ { print $$2 }' mod.config)
|
||||
ENGINE_DIRECTORY = $(shell awk -F= '/ENGINE_DIRECTORY/ { print $$2 }' mod.config)
|
||||
AUTOMATIC_ENGINE_MANAGEMENT = $(shell awk -F= '/AUTOMATIC_ENGINE_MANAGEMENT/ { print $$2 }' mod.config)
|
||||
|
||||
INCLUDE_DEFAULT_MODS = $(shell awk -F= '/INCLUDE_DEFAULT_MODS/ { print $$2 }' mod.config)
|
||||
MOD_ID = $(shell cat user.config mod.config 2> /dev/null | awk -F= '/MOD_ID/ { print $$2; exit }')
|
||||
ENGINE_DIRECTORY = $(shell cat user.config mod.config 2> /dev/null | awk -F= '/ENGINE_DIRECTORY/ { print $$2; exit }')
|
||||
INCLUDE_DEFAULT_MODS = $(shell cat user.config mod.config 2> /dev/null | awk -F= '/INCLUDE_DEFAULT_MODS/ { print $$2; exit }')
|
||||
|
||||
MOD_SEARCH_PATHS = "$(shell python -c "import os; print(os.path.realpath('.'))")/mods"
|
||||
ifeq ($(INCLUDE_DEFAULT_MODS),"True")
|
||||
|
||||
Loading…
Reference in New Issue
Block a user