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 /steam_appid.txt
/*.so /*.so
/breakhack.run /breakhack*.run

4
.vimrc
View File

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

View File

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