Skip to content

Commit

Permalink
Update to build env
Browse files Browse the repository at this point in the history
  • Loading branch information
LiquidityC committed Sep 13, 2018
1 parent cfbd8ce commit 899d2e5
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@
*~
/steam_appid.txt
/*.so
/breakhack.run
/breakhack*.run
4 changes: 2 additions & 2 deletions .vimrc
Original file line number Diff line number Diff line change
@@ -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
Expand Down
14 changes: 8 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 899d2e5

Please sign in to comment.