Update to build env

This commit is contained in:
Linus Probert 2018-09-13 23:50:33 +02:00
parent cfbd8cea4d
commit 899d2e5d76
3 changed files with 11 additions and 9 deletions

2
.gitignore vendored
View File

@ -12,4 +12,4 @@
*~
/steam_appid.txt
/*.so
/breakhack.run
/breakhack*.run

4
.vimrc
View File

@ -1,7 +1,7 @@
nnoremap <F1> :Make<cr>
nnoremap <F2> :Make lint test<cr>
nnoremap <F3> :Termdebug _build/breakhack<cr>
nnoremap <F4> :ter ++close ./_build/breakhack<cr>
nnoremap <F3> :Termdebug _build/debug/breakhack<cr>
nnoremap <F4> :ter ++close ./_build/debug/breakhack<cr>
packadd termdebug
let g:termdebug_wide = 1

View File

@ -1,23 +1,25 @@
all:
@make -sC _build
@make -sC _build/debug
@make -sC _build/release
.PHONY: all
clean:
@make clean -sC _build
@make clean -sC _build/debug
@make clean -sC _build/release
.PHONY: clean
test:
@make test -sC _build
@make test -sC _build/debug
.PHONY: test
run: $(all)
@./_build/breakhack
@./_build/debug/breakhack
.PHONY: run
lint:
@make lint -sC _build
@make lint -sC _build/debug
.PHONY: lint
package:
@make package -sC _build
@make package -sC _build/release
.PHONY: package