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

Lines changed: 3 additions & 0 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy