put built file in right directory
This commit is contained in:
3
Justfile
3
Justfile
@@ -1,5 +1,6 @@
|
||||
test +TESTS='test': build
|
||||
tests/bats/bin/bats {{ append('.bats',prepend('tests/',TESTS)) }}
|
||||
|
||||
exec *ARGS: build
|
||||
build/args {{ARGS}}
|
||||
build:
|
||||
@make build
|
||||
|
||||
6
Makefile
6
Makefile
@@ -16,10 +16,10 @@ define DOCS
|
||||
)
|
||||
endef
|
||||
|
||||
build: build/ $(NAME)
|
||||
build: build/ build/$(NAME)
|
||||
|
||||
$(NAME): src/main.c $(HEADERS)
|
||||
cc -o $(NAME) $^
|
||||
build/$(NAME): src/main.c $(HEADERS)
|
||||
cc -o $@ $<
|
||||
|
||||
|
||||
test:
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
setup(){
|
||||
export PATH="${PWD}:${PATH}"
|
||||
export PATH="${PWD}/build:${PATH}"
|
||||
load 'test_helper/bats-support/load'
|
||||
load 'test_helper/bats-assert/load'
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user