Skip to content

Commit 7c4eac7

Browse files
committed
Makefile rule to fetch nlohmann/json.hpp
1 parent 4bdc2b7 commit 7c4eac7

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

src/cpp/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/ext/

src/cpp/Makefile

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,13 @@ ROOT := ../..
33

44
default: help
55

6-
test: test-tap
6+
test: ext/nlohmann/json.hpp test-tap
7+
8+
ext/nlohmann/json.hpp:
9+
mkdir -p ext/nlohmann
10+
curl -s https://raw.githubusercontent.com/nlohmann/json/develop/single_include/nlohmann/json.hpp > $@
11+
12+
clean::
13+
rm -fr ext
714

815
include ../../.makefile/runtime.mk

0 commit comments

Comments
 (0)