summaryrefslogtreecommitdiffhomepage
path: root/build
diff options
context:
space:
mode:
Diffstat (limited to 'build')
-rw-r--r--build/config.mk2
-rw-r--r--build/module.mk2
2 files changed, 4 insertions, 0 deletions
diff --git a/build/config.mk b/build/config.mk
index 81d3e0836c..3cf13201f5 100644
--- a/build/config.mk
+++ b/build/config.mk
@@ -7,3 +7,5 @@ LUA_LIBRARYDIR = /usr/lib/lua
LUCI_MODULEDIR = $(LUA_MODULEDIR)/luci
LUCI_LIBRARYDIR = $(LUA_LIBRARYDIR)/luci
+HTDOCS = /www
+
diff --git a/build/module.mk b/build/module.mk
index 4ef3668c8b..b85dcda359 100644
--- a/build/module.mk
+++ b/build/module.mk
@@ -14,9 +14,11 @@ clean: luaclean
luasource:
mkdir -p dist$(LUA_MODULEDIR)
mkdir -p dist$(LUCI_MODULEDIR)
+ mkdir -p dist$(HTDOCS)
cp -a root/* dist -R 2>/dev/null || true
cp -a luasrc/* dist$(LUCI_MODULEDIR) -R 2>/dev/null || true
cp -a lua/* dist$(LUA_MODULEDIR) -R 2>/dev/null || true
+ cp -a htdocs/* dist$(HTDOCS) -R 2>/dev/null || true
for i in $$(find dist -name .svn); do rm $$i -rf; done
luacompile: luasource