-
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathmakefile
More file actions
28 lines (20 loc) · 549 Bytes
/
makefile
File metadata and controls
28 lines (20 loc) · 549 Bytes
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
# GCtrl Makefile
# Wraps CMake build system for convenience
BUILD_DIR := build
BUILD_TYPE := Release
PREFIX := /usr/local
BINARY := gctrl
.PHONY: all build install run uninstall clean
all: build
build:
cmake -B $(BUILD_DIR) -DCMAKE_BUILD_TYPE=$(BUILD_TYPE)
cmake --build $(BUILD_DIR)
install: build
install -d $(DESTDIR)$(PREFIX)/bin
install -m 755 $(BUILD_DIR)/engine/$(BINARY) $(DESTDIR)$(PREFIX)/bin/$(BINARY)
run: build
./$(BUILD_DIR)/engine/$(BINARY)
uninstall:
rm -f $(DESTDIR)$(PREFIX)/bin/$(BINARY)
clean:
rm -rf $(BUILD_DIR)