summaryrefslogtreecommitdiffhomepage
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 7794af6..bb93b0d 100644
--- a/Makefile
+++ b/Makefile
@@ -56,6 +56,7 @@ LIBS+= \
endif
PROGSRC=\
+ config.cpp \
http.cpp \
http_debian10.cpp
@@ -69,6 +70,7 @@ SRC=$(PROGSRC) webserver.cpp
all: test-$(PROJECTNAME) $(PROJECTNAME)
./test-$(PROJECTNAME)
+ ./webserver -c webserver.conf
# testsuite ----------------------------------------------
test-$(PROJECTNAME): $(TESTSRC:.cpp=.o)
@@ -96,6 +98,12 @@ install:
mkdir -p $(DESTDIR)/usr/bin
cp webserver $(DESTDIR)/usr/bin
+ mkdir -p $(DESTDIR)/usr/lib/webserver/plugins
+ mkdir -p $(DESTDIR)/usr/local/lib/webserver/plugins
+
+ mkdir -p $(DESTDIR)/etc
+ cp webserver.conf $(DESTDIR)/etc/webserver.conf
+
# misc ---------------------------------------------------
deb:
# build binary deb package