simplifying makefile with implicit rule

cat-town
Dan Buch 15 years ago
parent aad5286647
commit 744aee1b47

@ -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 $@

Loading…
Cancel
Save