summaryrefslogtreecommitdiff
path: root/src/server
diff options
context:
space:
mode:
Diffstat (limited to 'src/server')
-rw-r--r--src/server/Makefile.am9
-rw-r--r--src/server/httpd.c2
2 files changed, 8 insertions, 3 deletions
diff --git a/src/server/Makefile.am b/src/server/Makefile.am
index 2a723a6b..17e067d2 100644
--- a/src/server/Makefile.am
+++ b/src/server/Makefile.am
@@ -3,7 +3,7 @@ AM_CPPFLAGS = \
-I$(top_srcdir)/src/target \
-I$(top_srcdir)/src/flash \
-I$(top_srcdir)/src/jtag \
- -DPKGLIBDIR=\"$(pkglibdir)\"
+ -DPKGDATADIR=\"$(pkgdatadir)\"
METASOURCES = AUTO
noinst_LTLIBRARIES = libserver.la
@@ -25,7 +25,12 @@ noinst_HEADERS += tcl_server.h
libserver_la_SOURCES += tcl_server.c
if HTTPD
-nobase_dist_pkglib_DATA = $(wildcard $(srcdir)/httpd/*.tcl $(srcdir)/httpd/*.css $(srcdir)/httpd/menu_cuts/*.png)
+nobase_dist_pkgdata_DATA = \
+ $(wildcard \
+ $(srcdir)/httpd/*.tcl \
+ $(srcdir)/httpd/*.css \
+ $(srcdir)/httpd/menu_cuts/*.png \
+ )
endif
EXTRA_DIST = \
diff --git a/src/server/httpd.c b/src/server/httpd.c
index 6d985153..8ab5cb8f 100644
--- a/src/server/httpd.c
+++ b/src/server/httpd.c
@@ -393,7 +393,7 @@ static int ahc_echo(void * cls, struct MHD_Connection * connection,
* being subverted to evil purposes
*/
- const char *httpd_dir=PKGLIBDIR "/httpd";
+ const char *httpd_dir = PKGDATADIR "/httpd";
if (*url=='/')
{