forked from kazuho/picojson
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
29 lines (20 loc) · 758 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
prefix=/usr/local
includedir=$(prefix)/include
check: test
test: test-core test-core-int64
./test-core
./test-core-int64
test-core: picojson.h test.cc picotest/picotest.c picotest/picotest.h
$(CXX) -Wall test.cc picotest/picotest.c -o $@
test-core-int64: picojson.h test.cc picotest/picotest.c picotest/picotest.h
$(CXX) -Wall -DPICOJSON_USE_INT64 test.cc picotest/picotest.c -o $@
clean:
rm -f test-core test-core-int64
install:
install -d $(DESTDIR)$(includedir)
install -p -m 0644 picojson.h $(DESTDIR)$(includedir)
uninstall:
rm -f $(DESTDIR)$(includedir)/picojson.h
clang-format: picojson.h examples/github-issues.cc examples/iostream.cc examples/streaming.cc
clang-format -i $?
.PHONY: test check clean install uninstall clang-format