-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
40 lines (29 loc) · 842 Bytes
/
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
include config.mk
.PHONY: all love linux windows mac
default: love
all: love linux windows mac
love:
@echo "Creating love file..."
rm -f release/$(GAME).love
cd src; zip -9 -r ../release/$(GAME).love *.lua
zip -9 -r release/$(GAME).love lib assets LICENSE README.md
@echo "Done."
linux:
@echo "Building for linux..."
cp release/$(GAME).love $(LINUX_NAME)
@echo "Done."
windows:
@echo "Building for Windows..."
cat release/windows/love.exe release/$(GAME).love > $(WINDOWS_NAME)
@echo "Done."
mac:
@echo "Building for macOS..."
cp release/$(GAME).love $(MAC_NAME)/Contents/Resources/
@echo "Done."
push:
@./butler.sh $(GAME) $(VERSION) $(ITCH) $(LINUX_PATH) $(WINDOWS_PATH) $(MAC_PATH)
clean:
rm -f release/$(GAME).love
rm -f $(LINUX_NAME)
rm -f $(WINDOWS_NAME)
rm -f $(MAC_NAME)/Contents/Resources/$(GAME).love