-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
29 lines (21 loc) · 797 Bytes
/
Makefile
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
# -*- Mode: makefile; -*-
ERICWTOOLS_PATH := ~/Applications/ericw-tools
MAP_BASE_NAME := pocket_infinity
WORK_DIR_PATH := .
CPU_COUNT := $(shell nproc --all)
GAME_DIR_PATH = ~/Applications/nquake
TARGET_MAP = $(WORK_DIR_PATH)/$(MAP_BASE_NAME)-compile.map
TARGET_BSP = $(WORK_DIR_PATH)/$(MAP_BASE_NAME).bsp
.PHONY: all
.DEFAULT_GOAL := all
all: export bsp vis light
export: $(MAP_BASE_NAME).map
cp $(MAP_BASE_NAME).map $(TARGET_MAP)
bsp: $(TARGET_MAP)
$(ERICWTOOLS_PATH)/qbsp -wadpath . -leaktest $(TARGET_MAP) $(TARGET_BSP)
vis: $(TARGET_BSP)
$(ERICWTOOLS_PATH)/vis -threads $(CPU_COUNT) -level 4 $(TARGET_BSP)
light: $(TARGET_BSP)
$(ERICWTOOLS_PATH)/light -threads $(CPU_COUNT) -soft -extra -extra4 -bspx -phong 1 $(TARGET_BSP)
install: all
cp $(TARGET_BSP) $(GAME_DIR_PATH)/qw/maps