-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathMakefile
90 lines (70 loc) · 1.62 KB
/
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
# Copyright (C) 2017 The Antares Authors
# This file is part of Antares, a tactical space combat game.
# Antares is free software, distributed under the LGPL+. See COPYING.
CUR := out/$(shell readlink out/cur || cat out/cur)
MAC_BIN := $(CUR)/Antares.app/Contents/MacOS/Antares
BUILD := $(CUR)/ninja -C $(CUR)
.PHONY: build
build:
@$(BUILD)
.PHONY: test
test: build
scripts/test.py
.PHONY: test-wine
test-wine: build
scripts/test.py --wine
.PHONY: smoke-test
smoke-test: build
scripts/test.py --smoke
.PHONY: clean
clean:
@$(BUILD) -t clean
.PHONY: dist
dist:
scripts/dist.py src zip
scripts/dist.py src gz
scripts/dist.py src bz2
.PHONY: distclean
distclean:
rm -Rf out/
rm -f scripts/*.pyc build/lib/scripts/*.pyc
.PHONY: run
run: build
@[ -f $(MAC_BIN) ] && $(MAC_BIN) || true
.PHONY: sign
sign: build
codesign --force \
--options runtime \
--timestamp \
--sign "Developer ID Application" \
--entitlements resources/entitlements.plist \
$(CUR)/Antares.app
.PHONY: notarize
notarize: sign
scripts/notarize
.PHONY: install-deps
install-deps:
@scripts/installdeps.py
.PHONY: install
install: install-bin install-data install-scenario
.PHONY: install-bin
install-bin: build
@$(CUR)/install bin
.PHONY: install-data
install-data: build
@$(CUR)/install data
.PHONY: install-scenario
install-scenario: build
@$(CUR)/install scenario
.PHONY: pull-request
pull-request:
hub pull-request -b arescentral:master
.PHONY: friends
friends:
@echo "Sure! You can email me at sfiera@twotaled.com."
.PHONY: love
love:
@echo "Sorry, I'm not that kind of Makefile."
.PHONY: time
time:
@echo "I've always got time for you."