Skip to content

Commit 660b7f3

Browse files
kartikmohtaBenno Evers
authored andcommitted
Makefile: Build all examples
1 parent 037022b commit 660b7f3

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

Makefile

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
examples: minimal basic modern animation
1+
examples: minimal basic modern animation nonblock xkcd
22

33
minimal: examples/minimal.cpp matplotlibcpp.h
44
cd examples && g++ -DWITHOUT_NUMPY minimal.cpp -I/usr/include/python2.7 -lpython2.7 -o minimal -std=c++11
@@ -11,3 +11,12 @@ modern: examples/modern.cpp matplotlibcpp.h
1111

1212
animation: examples/animation.cpp matplotlibcpp.h
1313
cd examples && g++ animation.cpp -I/usr/include/python2.7 -lpython2.7 -o animation -std=c++11
14+
15+
nonblock: examples/nonblock.cpp matplotlibcpp.h
16+
cd examples && g++ nonblock.cpp -I/usr/include/python2.7 -lpython2.7 -o nonblock -std=c++11
17+
18+
xkcd: examples/xkcd.cpp matplotlibcpp.h
19+
cd examples && g++ xkcd.cpp -I/usr/include/python2.7 -lpython2.7 -o xkcd -std=c++11
20+
21+
clean:
22+
rm -f examples/{minimal,basic,modern,animation,nonblock,xkcd}

examples/nonblock.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#define _USE_MATH_DEFINES
22
#include <cmath>
3-
#include "matplotlibcpp.h"
3+
#include "../matplotlibcpp.h"
44

55
namespace plt = matplotlibcpp;
66

@@ -43,4 +43,4 @@ int main()
4343

4444
cout << "matplotlibcpp::show() is working in an non-blocking mode" << endl;
4545
getchar();
46-
}
46+
}

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