put built file in right directory

This commit is contained in:
2026-01-14 20:46:01 +05:30
parent 934661ad3b
commit 48270d41b8
3 changed files with 6 additions and 5 deletions

View File

@@ -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

View File

@@ -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:

View File

@@ -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'
}