Skip to content

Commit c0c31fe

Browse files
author
AnyKeyShik
committed
Update Makefile and README
1 parent 971952c commit c0c31fe

2 files changed

Lines changed: 7 additions & 5 deletions

File tree

Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,17 @@ c_object_files := $(patsubst src/%.c, build/obj/%.o, $(c_source_files))
44
server := build/server
55
client := build/client
66

7-
.PHONY: all, clean, run, server, client
7+
.PHONY: all, clean, server, client
88

99
all: $(client) $(server)
1010

1111
clean:
1212
@echo "Cleaning all..."
1313
@rm -r build
1414

15-
run: $(client) $(server)
16-
@build/server 1337
17-
@build/client 127.0.0.1 1337
15+
server: $(server)
16+
17+
client: $(client)
1818

1919
$(client): src/client.c
2020
@mkdir -p $(shell dirname $@)

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@ Simply use the following commands in a terminal:
2828
```
2929
git clone https://github.com/AnyKeyShik/SocketsChat.git
3030
cd SocketsChat
31-
make run
31+
make all
32+
./build/server <port_for_binding>
33+
./build/client <host_for_connect> <port_on_host>
3234
```
3335

3436
#### Usage

0 commit comments

Comments
 (0)