-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
51 lines (36 loc) · 1.43 KB
/
Copy pathMakefile
File metadata and controls
51 lines (36 loc) · 1.43 KB
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
48
49
50
51
# This is the top-level Makefile for the Sprawl project. Execute these targets from the root directory of the project.
# See makefiles/README.md for more information.
.PHONY: sprawl mvp
MAKEFILE_DIR:=makefiles
include $(MAKEFILE_DIR)/settings_misc.mk
all: sprawl mvp
# Builds main .dylib file for sprawl-based games to link against
sprawl:
$(MAKE) -j -f $(MAKEFILE_DIR)/sprawl.mk deps
$(MAKE) -j -f $(MAKEFILE_DIR)/sprawl.mk build
# Runs sprawl MVP demonstrating basic functionality
mvp: sprawl
$(MAKE) -j -f $(MAKEFILE_DIR)/mvp.mk run
# TODO: Remove breakout; this doesn't use sprawl or build correctly right now
#breakout:
# $(MAKE) -j -f $(MAKEFILE_DIR)/breakout.mk deps
# $(MAKE) -j -f $(MAKEFILE_DIR)/breakout.mk build
#run-breakout:
# $(MAKE) -j -f $(MAKEFILE_DIR)/breakout.mk run
clean-all: clean-bin clean-deps clean-logs clean-obj
clean-bin:
-rm -r $(BIN_DIR)
-mkdir $(BIN_DIR)
clean-deps:
-find . -name "*.d" | sort -u | xargs rm
clean-logs:
-rm -r $(LOG_DIR)
-mkdir $(LOG_DIR)
clean-obj:
-find . -name "*.o" | sort -u | xargs rm
# NOTE: This is a Linux-specific tool for screen recording. For MacOS, use Quicktime.
record-screen:
byzanz-record -d 5 --x=760 --y=200 --width=1920 --height=1080 bin/recorded_screen.gif
# NOTE: if you copy/paste this into the terminal, change the double-dollar sign to a single dollar sign.
count-sprawl-loc:
git ls-files | grep sprawl | grep -E "(\.cc|\.hh)$$" | uniq | xargs cat | wc -l