Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6ec72da

Browse files
alexdewarlava
authored andcommitted
Fix: Allow for building examples individually
You don't necessarily want to build all of them. Now you can do, e.g.: make examples/minimal
1 parent 1c2a51f commit 6ec72da

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Makefile

+3
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,8 @@ EXECUTABLES := $(foreach exec,$(basename $(SOURCES)),$(exec))
2121

2222
examples: $(EXECUTABLES)
2323

24+
$(EXECUTABLES): %: %.cpp
25+
$(CXX) -o $@ $< $(CXXFLAGS) $(LDFLAGS)
26+
2427
clean:
2528
rm -f ${EXECUTABLES}

0 commit comments

Comments
 (0)