Makefile running a list of files

T

TCM

I need to run multiple C files one after the other.

My makefile currently looks like this:
BINS: a.out b.out c.out d.out

run-all: $(BINS)
./(Need each file here, sequentially)

I can't find any static pattern match to have them all run one after
the other. $? returns all them, I need to parse through them one at a
time.

Is this possible?

Thanks for any response.
 
K

Keith Thompson

TCM said:
I need to run multiple C files one after the other.

My makefile currently looks like this:
BINS: a.out b.out c.out d.out

run-all: $(BINS)
./(Need each file here, sequentially)

I can't find any static pattern match to have them all run one after
the other. $? returns all them, I need to parse through them one at a
time.

Is this possible?

This isn't a C question. Try comp.unix.programmer.
 
J

Jack Klein

I need to run multiple C files one after the other.

Make files and make utilities are off-topic here, for multiple
reasons. The first one is that they are not defined by, or even
specific to, the C language.

The second one is that there is no such thing as "a" make file.
Virtually every platform and/or tool set has its own, and no two are
exactly alike.

You need to ask this in a support group for either your platform, if
the make utility is part of the OS, or your compiler/tool set, if the
make utility came with that.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,175
Messages
2,570,947
Members
47,498
Latest member
yelene6679

Latest Threads

Top