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

Skip to content

Commit 660b7f3

Browse files
kartikmohtaBenno Evers
authored and
Benno Evers
committed
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

+10-1
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

+2-2
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)