How to fix this Makefile
Posted
by Phenom
on Stack Overflow
See other posts from Stack Overflow
or by Phenom
Published on 2010-03-25T08:52:30Z
Indexed on
2010/03/25
17:53 UTC
Read the original article
Hit count: 321
I want my Makefile to be as simple as possible and still function. This is what it looks like.
load: load.cpp
g++ load.cpp -g -o load
list: list.cpp
g++ list.cpp -g -o list
It worked fine when there was only one entry. But when I added the second entry, it doesn't check to see if it's updated and needs to be recompiled, unless I specifically supply the name. How do I fix this?
© Stack Overflow or respective owner