streuner-game/Makefile

33 lines
559 B
Makefile
Raw Normal View History

ZIP := zip -x \*.tmx \*.xcf
2014-04-03 07:15:25 +00:00
LOVE := love
NAME := ds_alpha
VERSION := 0.0.1
2016-06-20 16:35:17 +00:00
CURRENTDIR := $(realpath .)
2014-04-03 07:15:25 +00:00
SRCDIR := src
BUILDDIR := build
.PHONY : all
2014-04-03 07:17:02 +00:00
all : run
2014-04-03 07:15:25 +00:00
2016-06-20 16:35:17 +00:00
.PHONY : docker
docker :
docker run --env-file=config --volume $(CURRENTDIR):/var/lib/builder/workspace thallian/love-release
$(BUILDDIR):
mkdir -p $(BUILDDIR)
love : $(BUILDDIR)
2014-04-03 07:15:25 +00:00
cd $(SRCDIR)/ && \
$(ZIP) -9 -r ../$(BUILDDIR)/$(NAME)_$(VERSION).love .
run :
$(LOVE) $(SRCDIR)/
2014-04-03 07:17:02 +00:00
2014-04-03 07:15:25 +00:00
clean :
rm -rf $(BUILDDIR)/*
2014-05-08 10:10:59 +00:00
kill:
kill -s kill $(ps | grep "love src/" | awk '{print $1}')