nostalgia/Makefile

38 lines
938 B
Makefile
Raw Normal View History

DEVENV=devenv$(shell pwd | sed 's/\//-/g')
ENV_RUN=docker exec --user $(shell id -u ${USER}) ${DEVENV}
2016-12-18 15:54:13 -06:00
2016-03-26 15:49:05 -05:00
make:
${ENV_RUN} make -j -C build
2016-03-26 15:49:05 -05:00
preinstall:
${ENV_RUN} make -j -C build ARGS="preinstall"
2016-03-26 15:49:05 -05:00
install:
${ENV_RUN} make -j -C build ARGS="install"
2016-03-26 15:49:05 -05:00
clean:
${ENV_RUN} make -j -C build ARGS="clean"
2016-03-26 15:49:05 -05:00
test:
${ENV_RUN} 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 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:
${ENV_RUN} ./scripts/setup_build
2016-03-26 15:49:05 -05:00
rm -f build/current
ln -s sdl build/current
sdl_debug:
${ENV_RUN} ./scripts/setup_build_debug
2016-03-26 15:49:05 -05:00
rm -f build/current
ln -s sdl_debug build/current
gba:
${ENV_RUN} ./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