commit 479c5d914d314df98921384fd2f4e5728bd23f68
parent d8d67d1123b279d019260c2d41d5330ea3a60017
Author: Anton Kling <anton@kling.gg>
Date: Sat, 1 Jan 2022 14:15:26 +0100
Added support for "make install" to the Makefile. It will install
smol_http to /usr/bin with permissions 755
Diffstat:
1 file changed, 5 insertions(+), 0 deletions(-)
diff --git a/Makefile b/Makefile
@@ -5,5 +5,10 @@ smol_http: smol_http.c
sudo chown root:root $@
sudo chmod u+s $@
+install: all
+ mkdir -p /usr/bin
+ cp -f smol_http /usr/bin
+ chmod 755 /usr/bin/smol_http
+
clean:
rm smol_http