forked from budjb/jaymod
-
Notifications
You must be signed in to change notification settings - Fork 0
/
GNUmakefile
47 lines (37 loc) · 1.08 KB
/
GNUmakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
ifeq ($(PROJECT),)
PROJECT = .
endif
ifeq ($(PLATFORM),)
ifeq ($(VARIANT),)
BUILD/ = $(PROJECT/)build/
else
BUILD/ = $(PROJECT/)build-$(VARIANT)/
endif
else
ifeq ($(VARIANT),)
BUILD/ = $(PROJECT/)build.$(PLATFORM)/
else
BUILD/ = $(PROJECT/)build.$(PLATFORM)-$(VARIANT)/
endif
endif
###############################################################################
MODULES += src/lua
MODULES += src/base
MODULES += src/cgame
MODULES += src/game
MODULES += src/ui
MODULES += pak/pak
MODULES += pkg/pkg
MODULES += doc/book
###############################################################################
all::
###############################################################################
-include $(BUILD/)make/project.mk
ifdef PROJECT.name
include $(PROJECT)/make/main.mk
endif
###############################################################################
$(BUILD/)make/project.mk: $(PROJECT/)project/info.py $(PROJECT/)project/info.db
$(call print.HEADER,GENERATING,$@)
@mkdir -p $(dir $@)
@$< -mk $(PROJECT/)project/info.db > $@