-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmakefile
More file actions
58 lines (42 loc) · 1.88 KB
/
makefile
File metadata and controls
58 lines (42 loc) · 1.88 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
52
53
54
55
56
57
58
VERSION := $(shell grep 'define config.version' game/options.rpy | sed 's/.\+"\(.\+\)"/\1/')
FEATURE := $(shell grep 'define config.version' game/options.rpy | sed 's/.\+"\(.\+\)"/\1/;s/\([0-9]\+\.[0-9]\+\).\+/\1.0/')
SLIM_ZIP_NAME := .build/ga-slim-$(VERSION).zip
FULL_ZIP_NAME := .build/ga-project-$(VERSION).zip
.PHONY: default
default:
@echo "What are you doing?"
.PHONY: clean
clean:
@echo "Cleaning directory."
@find . -name '*.rpyc' -o -name '*.rpyb' -o -name '*.rpymc' | xargs -I'{}' rm '{}'
.PHONY: release
release: pre-release build-base-project-zip build-slim-zip # build-distributions
.PHONY: pre-release
pre-release: clean
@rm -rf .build log.txt errors.txt traceback.txt
.PHONY: build-base-project-zip
build-base-project-zip: clean
@mkdir -p .build
@rm -f "$(FULL_ZIP_NAME)"
@cp license generated-animations-license
@zip -r "$(FULL_ZIP_NAME)" game generated-animations-license -x game/saves/**\* -x game/cache/**\*
@rm generated-animations-license
.PHONY: build-slim-zip
build-slim-zip: clean
@mkdir -p .build
@rm -f "$(SLIM_ZIP_NAME)"
@cp license generated-animations-license
@zip -r "$(SLIM_ZIP_NAME)" game/lib/fxcpds/generated_animations generated-animations-license
@rm generated-animations-license
.PHONY: build-distributions
build-distributions: clean
@mkdir -p .build
@renpy-8.1.1 /opt/renpy/8.1.1/launcher distribute . --package=pc --dest=.build
@renpy-8.1.1 /opt/renpy/8.1.1/launcher distribute . --package=mac --dest=.build
@renpy-8.1.1 /opt/renpy/8.1.1/launcher distribute . --package=linux --dest=.build
.PHONY: docs
docs:
@mkdir -p docs/versions/$(FEATURE)
@asciidoctor -b html5 -o docs/index.html -a revnumber=$(FEATURE) docs/index.adoc
@asciidoctor -b html5 -o docs/versions/$(FEATURE)/index.html -a revnumber=$(FEATURE) docs/reference/index.adoc
@asciidoctor -b html5 -o docs/versions/$(FEATURE)/tutorial.html -a revnumber=$(FEATURE) docs/reference/tutorial.adoc