add install to makefile

This commit is contained in:
kxtzownsu 2024-11-17 07:13:49 -05:00 committed by kxtz smith
parent c11507c896
commit f486069021

View File

@ -13,20 +13,24 @@ CFLAGS := \
-Llib \ -Llib \
-static -static
$(shell mkdir -p build) all: clean build kvs kvg
all: clean kvs kvg kvs: build/bin/kvs
kvg: build/bin/kvg
kvs: build/kvs build:
kvg: build/kvg $(shell mkdir -p build/bin)
build/kvs: src/KVS/main.c build/bin/kvs: src/KVS/main.c
$(CC) $(KVSFLIST) -o build/kvs $(CFLAGS) $(CC) $(KVSFLIST) -o build/bin/kvs $(CFLAGS)
chmod +rx build/kvs chmod +rx build/bin/kvs
build/kvg: src/KVG/main.c build/bin/kvg: src/KVG/main.c
$(CC) src/KVG/main.c -o build/kvg $(CFLAGS) $(CC) src/KVG/main.c -o build/bin/kvg $(CFLAGS)
chmod +rx build/kvg chmod +rx build/bin/kvg
install:
cp -r build/* /usr/local/
clean: clean:
rm -rf build rm -rf build