www/Makefile

changeset 5
36387e45a194
parent 4
1750b6cae48e
child 10
606b4af8f918
--- a/www/Makefile	Thu Aug 09 21:52:01 2018 +0200
+++ b/www/Makefile	Fri Aug 10 13:46:23 2018 +0200
@@ -3,8 +3,10 @@
 
 include ../Makefile.global
 
-SRC		= version.php.in index.php getfermenter.php  getfermenters.php  \
-		  getnode.php  getnodes.php config.php.dist
+SRC		= index.php getfermenter.php  getfermenters.php  \
+		  getnode.php  getnodes.php config.php.dist 
+SUB		= version.php.in images/* css/* jqwidgets/* jqwidgets/styles/* \
+		  jqwidgets/styles/images/* jqwidgets/globalization/* js/*
 OTHER		= Makefile
 
 #############################################################################
@@ -18,11 +20,20 @@
 		rm -f version.php
 
 install:
+		${INSTALL} -d -g 314 -o 314 ${PREFIX} ${WWWDIR} ${WWWDIR}/css \
+			${WWWDIR}/jqwidgets ${WWWDIR}/js ${WWWDIR}/images/
+		${INSTALL} -g 314 -o 314 ${SRC} ${WWWDIR}/
+		${INSTALL} -g 314 -o 314 version.php ${WWWDIR}/
+		${INSTALL} -g 314 -o 314 css/* ${WWWDIR}/css/
+		${INSTALL} -g 314 -o 314 images/* ${WWWDIR}/images/
+		cp -r jqwidgets/* ${WWWDIR}/jqwidgets/
+		chown -R 314:314 ${WWWDIR}/jqwidgets
+		${INSTALL} -g 314 -o 314 js/* ${WWWDIR}/js/
 
 filelist:	Makefile
 		BASE=`pwd`; \
 		BASE=`basename $${BASE}`; \
-		(for f in ${SRC} ${OTHER} ;do echo ${PACKAGE}-${VERSION}/$${BASE}/$$f; done) >filelist
+		(for f in ${SRC} ${SUB} ${OTHER} ;do echo ${PACKAGE}-${VERSION}/$${BASE}/$$f; done) >filelist
 
 depend:
 

mercurial