-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMakefile
61 lines (46 loc) · 1.78 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
.POSIX:
SHELL = /bin/sh
.SUFFIXES:
PKG = frosthaven-manager
COLLECT = frosthaven-manager
LANGS = ++lang frosthaven-manager/bestiary \
++lang frosthaven-manager/foes \
++lang frosthaven-manager/aoe \
++lang frosthaven-manager/loot-cards
EXES = FrosthavenManager.app/Contents/MacOS/FrosthavenManager \
FrosthavenManager \
FrosthavenManager.exe
RACO = raco
setup:
$(RACO) setup $(RACO_SETUP_ARGS) --pkgs $(PKG)
install:
$(RACO) pkg install --name $(PKG) --auto $(RACO_INSTALL_ARGS)
uninstall:
$(RACO) pkg remove $(PKG)
test:
$(RACO) test $(RACO_TEST_ARGS) --package $(PKG)
check-deps:
$(RACO) setup $(RACO_SETUP_ARGS) --check-pkg-deps --pkgs $(PKG)
fix-deps:
$(RACO) setup $(RACO_SETUP_ARGS) --fix-pkg-deps --pkgs $(PKG)
fix-doc-index:
$(RACO) setup $(RACO_SETUP_ARGS) --doc-index --pkgs $(PKG)
clean:
$(RACO) setup $(RACO_SETUP_ARGS) --fast-clean --pkgs $(PKG)
docs/frosthaven-manager/index.html:
scribble +m --redirect-main http://pkg-build.racket-lang.org/doc/ --htmls --dest ./docs ./scribblings/frosthaven-manager.scrbl
$(EXES): gui/manager.rkt
$(RACO) exe --gui -o FrosthavenManager $(LANGS) gui/manager.rkt
# POSIX leaves $< unspecified in these target rules
macOS-FrosthavenManager: FrosthavenManager.app/Contents/MacOS/FrosthavenManager
$(RACO) distribute $@ FrosthavenManager.app
linux-FrosthavenManager: FrosthavenManager
$(RACO) distribute $@ FrosthavenManager
windows-FrosthavenManager: FrosthavenManager.exe
$(RACO) distribute $@ FrosthavenManager.exe
linux-FrosthavenManager.tar.gz: linux-FrosthavenManager
tar cvf - linux-FrosthavenManager | gzip >$@
macOS-FrosthavenManager.tar.gz: macOS-FrosthavenManager
tar cvf - macOS-FrosthavenManager | gzip >$@
windows-FrosthavenManager.zip: windows-FrosthavenManager
7z a $@ windows-FrosthavenManager