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