I have a C program - example.c
and once it compiles I want to use it to generate test results.
Each file under ./tests/%.in
is a test case.
And I want from each of them to create ./tests/%.out
I tried something like that:
all: test_results
example: example.c
gcc example.c -o example
test_results: example ./tests/%.out
./tests/%.out: ./tests/%.in
./example $^ > $@
But I get errors, and it doesn't really seem to do the job.