Cleanup build files

This commit is contained in:
2018-03-09 21:45:46 -06:00
parent a2cf756f4a
commit 493060955b
4 changed files with 31 additions and 35 deletions

View File

@ -1,32 +1,26 @@
ifneq ($(shell which gmake),)
MAKE=gmake -j
else
MAKE=make
endif
all: gba_build native_build native_debug_build windows_release windows_debug
gba_build:
@if [ -d gba-release ]; then \
${MAKE} -C gba-release ${ARGS}; \
cmake --build gba-release --target ${ARGS}; \
fi
native_build:
@if [ -d ${HOST_ENV}-release ]; then \
${MAKE} -C ${HOST_ENV}-release ${ARGS}; \
cmake --build ${HOST_ENV}-release --target ${ARGS}; \
fi
native_debug_build:
@if [ -d ${HOST_ENV}-debug ]; then \
${MAKE} -C ${HOST_ENV}-debug ${ARGS}; \
cmake --build ${HOST_ENV}-debug --target ${ARGS}; \
fi
windows_release:
@if [ -d windows-release ]; then \
${MAKE} -C windows-release ${ARGS}; \
cmake --build windows-release --target ${ARGS}; \
fi
windows_debug:
@if [ -d windows-debug ]; then \
${MAKE} -C windows-debug ${ARGS}; \
cmake --build windows-debug --target ${ARGS}; \
fi