Remove permanent build directory
This commit is contained in:
parent
ebdd31315d
commit
7e1866ade9
14
Makefile
14
Makefile
@ -14,21 +14,21 @@ ifneq ($(shell which docker),)
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
make:
|
make:
|
||||||
${ENV_RUN} ${MAKE} -j -C build HOST_ENV=${HOST_ENV}
|
${ENV_RUN} ./scripts/run-make build
|
||||||
gba-pkg:
|
gba-pkg:
|
||||||
${ENV_RUN} ${MAKE} -j -C build ARGS="install" HOST_ENV=${HOST_ENV}
|
${ENV_RUN} ./scripts/run-make build install
|
||||||
${ENV_RUN} ${MAKE} -j -C build HOST_ENV=${HOST_ENV}
|
${ENV_RUN} ./scripts/run-make build
|
||||||
${ENV_RUN} ./scripts/gba-pkg
|
${ENV_RUN} ./scripts/gba-pkg
|
||||||
preinstall:
|
preinstall:
|
||||||
${ENV_RUN} ${MAKE} -j -C build ARGS="preinstall" HOST_ENV=${HOST_ENV}
|
${ENV_RUN} ./scripts/run-make build preinstall
|
||||||
install:
|
install:
|
||||||
${ENV_RUN} ${MAKE} -j -C build ARGS="install" HOST_ENV=${HOST_ENV}
|
${ENV_RUN} ./scripts/run-make build install
|
||||||
clean:
|
clean:
|
||||||
${ENV_RUN} ${MAKE} -j -C build ARGS="clean" HOST_ENV=${HOST_ENV}
|
${ENV_RUN} ./scripts/run-make build clean
|
||||||
purge:
|
purge:
|
||||||
${ENV_RUN} rm -rf $$(find build -mindepth 1 -maxdepth 1 -type d) dist
|
${ENV_RUN} rm -rf $$(find build -mindepth 1 -maxdepth 1 -type d) dist
|
||||||
test:
|
test:
|
||||||
${ENV_RUN} ${MAKE} -j -C build ARGS="test" HOST_ENV=${HOST_ENV}
|
${ENV_RUN} ./scripts/run-make build test
|
||||||
|
|
||||||
run: install
|
run: install
|
||||||
./dist/current/bin/nostalgia -debug
|
./dist/current/bin/nostalgia -debug
|
||||||
|
@ -1,42 +0,0 @@
|
|||||||
all: gba_build gba_debug_build native_build native_debug_build native_asan_build windows_release windows_debug
|
|
||||||
|
|
||||||
ifneq ($(shell which gmake),)
|
|
||||||
MAKE="gmake"
|
|
||||||
else
|
|
||||||
MAKE="make"
|
|
||||||
endif
|
|
||||||
|
|
||||||
gba_build:
|
|
||||||
@if [ -d gba-release ]; then \
|
|
||||||
${MAKE} -C gba-release ${ARGS}; \
|
|
||||||
fi
|
|
||||||
|
|
||||||
gba_debug_build:
|
|
||||||
@if [ -d gba-debug ]; then \
|
|
||||||
${MAKE} -C gba-debug ${ARGS}; \
|
|
||||||
fi
|
|
||||||
|
|
||||||
native_build:
|
|
||||||
@if [ -d ${HOST_ENV}-release ]; then \
|
|
||||||
${MAKE} -C ${HOST_ENV}-release ${ARGS}; \
|
|
||||||
fi
|
|
||||||
|
|
||||||
native_debug_build:
|
|
||||||
@if [ -d ${HOST_ENV}-debug ]; then \
|
|
||||||
${MAKE} -C ${HOST_ENV}-debug ${ARGS}; \
|
|
||||||
fi
|
|
||||||
|
|
||||||
native_asan_build:
|
|
||||||
@if [ -d ${HOST_ENV}-asan ]; then \
|
|
||||||
${MAKE} -C ${HOST_ENV}-asan ${ARGS}; \
|
|
||||||
fi
|
|
||||||
|
|
||||||
windows_release:
|
|
||||||
@if [ -d windows-release ]; then \
|
|
||||||
${MAKE} -C windows-release ${ARGS}; \
|
|
||||||
fi
|
|
||||||
|
|
||||||
windows_debug:
|
|
||||||
@if [ -d windows-debug ]; then \
|
|
||||||
${MAKE} -C windows-debug ${ARGS}; \
|
|
||||||
fi
|
|
@ -1 +0,0 @@
|
|||||||
clang-check `find . | grep "\.cpp" | grep -v CMakeFiles | grep -v editormodels\.cpp`
|
|
@ -1,8 +0,0 @@
|
|||||||
BRANCH=$1
|
|
||||||
./scripts/setup_build
|
|
||||||
make -j4 -C build/sdl clean wombat
|
|
||||||
rm -rf wombat wombat-*-*.tar.gz
|
|
||||||
mkdir wombat
|
|
||||||
git rev-parse HEAD > wombat/revision.txt
|
|
||||||
cp -pr wombat_path build/sdl/src/wombat/wombat wombat
|
|
||||||
tar -cvzf wombat-${BRANCH}-`date "+%y%m%d%H%M"`.tar.gz wombat
|
|
@ -1,15 +0,0 @@
|
|||||||
#! /usr/bin/env python
|
|
||||||
|
|
||||||
import sys
|
|
||||||
|
|
||||||
if len(sys.argv) < 3:
|
|
||||||
sys.exit(1)
|
|
||||||
|
|
||||||
pkg = sys.argv[1]
|
|
||||||
name = sys.argv[2]
|
|
||||||
namespace = "namespace nostalgia {\nnamespace %s {\n\n}\n}" % pkg
|
|
||||||
hpp = "#pragma once\n"
|
|
||||||
cpp = "#include \"%s.hpp\"\n\n%s" % (name, namespace)
|
|
||||||
|
|
||||||
open("src/nostalgia/%s/%s.hpp" % (pkg, name), "w").write(hpp)
|
|
||||||
open("src/nostalgia/%s/%s.cpp" % (pkg, name), "w").write(cpp)
|
|
14
scripts/run-make
Executable file
14
scripts/run-make
Executable file
@ -0,0 +1,14 @@
|
|||||||
|
#! /usr/bin/env bash
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
if [$(which gmake) != 'gmake not found']; then
|
||||||
|
MAKE="gmake"
|
||||||
|
else
|
||||||
|
MAKE="make"
|
||||||
|
fi
|
||||||
|
|
||||||
|
for f in $(find $1 -maxdepth 1 -mindepth 1 -type d)
|
||||||
|
do
|
||||||
|
$MAKE -s -j -C "$f" $2
|
||||||
|
done
|
Loading…
Reference in New Issue
Block a user