added Makefile
This commit is contained in:
parent
0eb2138a75
commit
e5241d6c45
2 changed files with 23 additions and 0 deletions
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
build
|
||||||
22
Makefile
Normal file
22
Makefile
Normal file
|
|
@ -0,0 +1,22 @@
|
||||||
|
IGNORE_FLAGS=--ignore Makefile --ignore build
|
||||||
|
LOVE_PATH := $(shell command -v love)
|
||||||
|
default:
|
||||||
|
@echo Available targets: love, fused, clean
|
||||||
|
|
||||||
|
love: clean
|
||||||
|
mkdir build
|
||||||
|
ls $(IGNORE_FLAGS) | xargs zip -9r build/lines.love
|
||||||
|
@echo created lines.love in build directory
|
||||||
|
|
||||||
|
fused: love
|
||||||
|
ifdef LOVE_PATH
|
||||||
|
cat ${LOVE_PATH} build/lines.love > build/lines
|
||||||
|
chmod +x build/lines
|
||||||
|
@echo created fused binary lines in build directory
|
||||||
|
else
|
||||||
|
@echo love not found in PATH or LOVE_PATH
|
||||||
|
endif
|
||||||
|
|
||||||
|
clean:
|
||||||
|
-rm -rf build
|
||||||
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue