From d8c3333e7a7330c10bb96e426482e2b158011251 Mon Sep 17 00:00:00 2001 From: Roland Reichwein Date: Fri, 3 Apr 2020 13:54:08 +0200 Subject: Added configuration file (WIP) --- Makefile | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'Makefile') 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 -- cgit v1.2.3