Update to build env
This commit is contained in:
parent
cfbd8cea4d
commit
899d2e5d76
|
@ -12,4 +12,4 @@
|
|||
*~
|
||||
/steam_appid.txt
|
||||
/*.so
|
||||
/breakhack.run
|
||||
/breakhack*.run
|
||||
|
|
4
.vimrc
4
.vimrc
|
@ -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
|
||||
|
|
14
Makefile
14
Makefile
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue