simplifying makefile with implicit rule

This commit is contained in:
Dan Buch 2010-03-27 21:59:32 -04:00
parent aad5286647
commit 744aee1b47
2 changed files with 6 additions and 2 deletions

View File

@ -1,4 +1,8 @@
ALL_TARGETS = bin/hello-world
bin/hello-world: src/hello_world.cpp
g++ src/hello_world.cpp -o bin/hello-world
all: $(ALL_TARGETS)
bin/%: src/%.cpp
g++ $^ -o $@