commit 3c1862752ef352c43a263bf3fd6f8dc1d2ee12ed
parent 4068d88f411c38ea73db2b4e5871a311c86cfa50
Author: benjamin paul <bpaul@bpaul.xyz>
Date: Thu, 5 Aug 2021 21:58:21 +1000
install
Diffstat:
1 file changed, 6 insertions(+), 0 deletions(-)
diff --git a/Makefile b/Makefile
@@ -1,6 +1,8 @@
.POSIX:
NAME = bpaul-webgen
+PREFIX = /usr/local
+
CC = cc
CFLAGS = -W -O
@@ -11,5 +13,9 @@ all: $(NAME)
$(NAME): $(OBJS)
$(CC) $(LDFLAGS) -o $(NAME) $(OBJS)
+install: all
+ mkdir -p "$(DESTDIR)$(PREFIX)/bin"
+ cp -f $(NAME) "$(DESTDIR)$(PREFIX)/bin"
+
clean:
rm $(OBJS) $(NAME)