simplifying makefile with implicit rule
This commit is contained in:
parent
aad5286647
commit
744aee1b47
8
Makefile
8
Makefile
@ -1,4 +1,8 @@
|
|||||||
|
ALL_TARGETS = bin/hello-world
|
||||||
|
|
||||||
|
|
||||||
bin/hello-world: src/hello_world.cpp
|
all: $(ALL_TARGETS)
|
||||||
g++ src/hello_world.cpp -o bin/hello-world
|
|
||||||
|
|
||||||
|
bin/%: src/%.cpp
|
||||||
|
g++ $^ -o $@
|
||||||
|
Loading…
Reference in New Issue
Block a user