I have this in my Makefile:
%.x: %.c
$(CC) $(CFLAGS) -o $@ $^
So this generates executable files ending with .x
Now I would like to run all these executables one by one, something like:
run:
<execute *.x>
, but I want to avoid typing all the names
run:
./a.x
./b.x
(How) can I do that?
Thanks in advance.
1 Answer