diff options
author | Plex <thinkplex@riseup.net> | 2022-02-04 19:16:30 +0100 |
---|---|---|
committer | Plex <thinkplex@riseup.net> | 2022-02-04 19:16:30 +0100 |
commit | 28b41ee492805971632e1d65ab9f855ce837767b (patch) | |
tree | 8fee2d3206bb74fd1117536576a391a8d1725e33 /Makefile | |
parent | c71e08d9daa3444318c6f768894b97b1b6d65bc9 (diff) |
Factored the usage() function
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -1,5 +1,6 @@ CC=clang -CFLAGS=-Wall -g +CFLAGS=-Wall -g -I./include +PREFIX=~/.local mcping: mcping.c mctypes.o mcnetwork.o $(CC) $(CFLAGS) $^ -o $@ @@ -7,8 +8,15 @@ mcping: mcping.c mctypes.o mcnetwork.o %.o: %.c %.h $(CC) $(CFLAGS) -c $< +test: mcping + ./mcping 137.74.234.16:2001 | jq '.players' + ./mcping mc.seisan.fr | jq '.players' + lint: indent -kr -ts4 *.c clean: rm -f *.o *~ + +install: mcping + cp $^ $(PREFIX)/bin |