From 61b56cdf5830509ac20a8e57acb9535b0b755470 Mon Sep 17 00:00:00 2001 From: svenhoefer Date: Sat, 1 Oct 2016 11:06:11 +0200 Subject: [PATCH] - yWeb: add hack to Makefile to replace %(FAKE_VARIABLES) after install --- src/nhttpd/web/Makefile.am | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/nhttpd/web/Makefile.am b/src/nhttpd/web/Makefile.am index 51994c542..41b470401 100644 --- a/src/nhttpd/web/Makefile.am +++ b/src/nhttpd/web/Makefile.am @@ -99,3 +99,11 @@ install_DATA += accordion.js \ Y_Filemgr.yhtm \ Y_Filemgr_Edit.yhtm \ Y_Filemgr_blocks.txt + +install-data-hook: + @# Badass hack, I know. If anyone knows a better way -- please send patch! + find $(DESTDIR)$(PRIVATE_HTTPDDIR)/ -type f -print0 | xargs --no-run-if-empty -0 \ + sed -i \ + -e 's|%(CONFIGDIR)|$(CONFIGDIR)|g' \ + ; +