From fcf91349b1fadfd42d20a65a90b4b096871b37e6 Mon Sep 17 00:00:00 2001 From: cflip Date: Thu, 22 Sep 2022 21:40:02 -0600 Subject: Add install target to Makefile --- Makefile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Makefile b/Makefile index 573c499..feaf3e3 100644 --- a/Makefile +++ b/Makefile @@ -10,6 +10,8 @@ OBJS=src/main.o \ src/HttpRequest.o \ src/HttpResponse.o +DESTDIR=/usr/local/bin/ + all: cfws %.o: %.cpp @@ -22,3 +24,8 @@ cfws: $(OBJS) clean: rm -f $(OBJS) cfws + +.PHONY: install + +install: all + install -m 0755 ./cfws -t $(DESTDIR) -- cgit v1.2.3