2016-12-18 15:54:13 -06:00
|
|
|
DEVENV=devenv-$(shell pwd | sed 's/\//-/g')
|
|
|
|
|
2016-03-26 15:49:05 -05:00
|
|
|
make:
|
2016-12-18 15:54:13 -06:00
|
|
|
docker exec ${DEVENV} make -j -C build
|
2016-03-26 15:49:05 -05:00
|
|
|
preinstall:
|
2016-12-18 15:54:13 -06:00
|
|
|
docker exec ${DEVENV} make -j -C build ARGS="preinstall"
|
2016-03-26 15:49:05 -05:00
|
|
|
install:
|
2016-12-18 15:54:13 -06:00
|
|
|
docker exec ${DEVENV} make -j -C build ARGS="install"
|
2016-03-26 15:49:05 -05:00
|
|
|
clean:
|
2016-12-18 15:54:13 -06:00
|
|
|
docker exec ${DEVENV} make -j -C build ARGS="clean"
|
2016-03-26 15:49:05 -05:00
|
|
|
test:
|
2016-12-18 15:54:13 -06:00
|
|
|
docker exec ${DEVENV} make -j -C build ARGS="test"
|
2016-03-26 15:49:05 -05:00
|
|
|
run: make
|
|
|
|
./build/current/src/wombat/wombat -debug
|
|
|
|
debug: make
|
|
|
|
gdb ./build/current/src/wombat/wombat
|
2016-12-18 15:54:13 -06:00
|
|
|
devenv:
|
|
|
|
docker pull wombatant/devenv
|
|
|
|
docker rm -f ${DEVENV}
|
|
|
|
docker run -d -v $(shell pwd):/usr/src/project -e LOCAL_USER_ID=$(shell id -u ${USER}) --name ${DEVENV} -t wombatant/devenv bash
|
|
|
|
devenv-destroy:
|
|
|
|
docker rm -f ${DEVENV}
|
2016-03-26 15:49:05 -05:00
|
|
|
|
|
|
|
sdl:
|
2016-12-18 15:54:13 -06:00
|
|
|
docker exec ${DEVENV} ./scripts/setup_build
|
2016-03-26 15:49:05 -05:00
|
|
|
rm -f build/current
|
|
|
|
ln -s sdl build/current
|
|
|
|
|
|
|
|
sdl_debug:
|
2016-12-18 15:54:13 -06:00
|
|
|
docker exec ${DEVENV} ./scripts/setup_build_debug
|
2016-03-26 15:49:05 -05:00
|
|
|
rm -f build/current
|
|
|
|
ln -s sdl_debug build/current
|
|
|
|
|
|
|
|
gba:
|
2016-12-18 15:54:13 -06:00
|
|
|
docker exec ${DEVENV} ./scripts/setup_build_gba
|
2016-03-26 15:49:05 -05:00
|
|
|
rm -f build/current
|
2016-12-18 15:54:13 -06:00
|
|
|
ln -s gba build/current
|