Skip to content

Commit cafec06

Browse files
authored
update make files to use asio submodule version (#51)
1 parent 4d8af7f commit cafec06

4 files changed

Lines changed: 4 additions & 8 deletions

File tree

Makefile.bsd

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@ LFLAGS=-lpthread
99
$(CC) $(CFLAGS) -c $(.IMPSRC)
1010
OBJS=buffer.o asio_service.o cluster_config.o peer.o snapshot.o srv_config.o fs_log_store.o raft_server.o snapshot_sync_req.o
1111
asio/asio/include/asio.hpp:
12-
@if [ ! -d "asio/asio" ]; then git clone https://github.com/chriskohlhoff/asio.git ; fi;
13-
@git -C ./asio checkout asio-1-14-0
12+
@git submodule update --init
1413

1514
test: asio/asio/include/asio.hpp
1615
@cd tests && make -f Makefile.bsd testr && ./debug/testr

Makefile.lx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@ VPATH=./src/
77
$(CC) $(CFLAGS) -c -o $@ $<
88
OBJS=buffer.o asio_service.o cluster_config.o peer.o snapshot.o srv_config.o fs_log_store.o raft_server.o snapshot_sync_req.o
99
asio/asio/include/asio.hpp:
10-
@if [ ! -d "asio/asio" ]; then git clone https://github.com/chriskohlhoff/asio.git ; fi;
11-
@git -C ./asio checkout asio-1-14-0
10+
@git submodule update --init
1211

1312
testr: asio/asio/include/asio.hpp
1413
@cd tests && make -f Makefile.lx testr && ./debug/testr

Makefile.mac

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@ VPATH=./src/
77
$(CC) $(CFLAGS) -c -o $@ $<
88
OBJS=buffer.o asio_service.o cluster_config.o peer.o snapshot.o srv_config.o fs_log_store.o raft_server.o snapshot_sync_req.o
99
asio/asio/include/asio.hpp:
10-
@if [ ! -d "asio/asio" ]; then git clone https://github.com/chriskohlhoff/asio.git ; fi;
11-
@git -C ./asio checkout asio-1-14-0
10+
@git submodule update --init
1211

1312
testr: asio/asio/include/asio.hpp
1413
@cd tests && make -f Makefile.mac testr && ./debug/testr

sources

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,7 @@ SOURCES=src\raft_server.cxx\
1818
asio: asio/asio/include/asio.hpp
1919

2020
asio/asio/include/asio.hpp:
21-
@git clone https://github.com/chriskohlhoff/asio.git
22-
@git -C ./asio checkout asio-1-14-0
21+
@git submodule update --init
2322

2423
tests: asio
2524
@cd tests && nmake -f Makefile.win all && testr.exe && cd ..

0 commit comments

Comments
 (0)