summaryrefslogtreecommitdiffhomepage
path: root/Makefile
diff options
context:
space:
mode:
authorRoland Reichwein <mail@reichwein.it>2020-04-03 13:54:08 +0200
committerRoland Reichwein <mail@reichwein.it>2020-04-03 13:54:08 +0200
commitd8c3333e7a7330c10bb96e426482e2b158011251 (patch)
tree761dbe37aa3da1900826ffc8db6d89ecdea96927 /Makefile
parente60bb89a6d1392c0007a1fbc03faf007faf76167 (diff)
Added configuration file (WIP)
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