1 # Makefile for the bms webserver |
1 # Makefile for the bms webserver |
2 # Copyright (c) 2018 by M. Broek. |
2 # Copyright (c) 2018 by M. Broek. |
3 |
3 |
4 include ../Makefile.global |
4 include ../Makefile.global |
5 |
5 |
6 SRC = version.php.in index.php getfermenter.php getfermenters.php \ |
6 SRC = index.php getfermenter.php getfermenters.php \ |
7 getnode.php getnodes.php config.php.dist |
7 getnode.php getnodes.php config.php.dist |
|
8 SUB = version.php.in images/* css/* jqwidgets/* jqwidgets/styles/* \ |
|
9 jqwidgets/styles/images/* jqwidgets/globalization/* js/* |
8 OTHER = Makefile |
10 OTHER = Makefile |
9 |
11 |
10 ############################################################################# |
12 ############################################################################# |
11 |
13 |
12 .c.o: |
14 .c.o: |
16 |
18 |
17 clean: |
19 clean: |
18 rm -f version.php |
20 rm -f version.php |
19 |
21 |
20 install: |
22 install: |
|
23 ${INSTALL} -d -g 314 -o 314 ${PREFIX} ${WWWDIR} ${WWWDIR}/css \ |
|
24 ${WWWDIR}/jqwidgets ${WWWDIR}/js ${WWWDIR}/images/ |
|
25 ${INSTALL} -g 314 -o 314 ${SRC} ${WWWDIR}/ |
|
26 ${INSTALL} -g 314 -o 314 version.php ${WWWDIR}/ |
|
27 ${INSTALL} -g 314 -o 314 css/* ${WWWDIR}/css/ |
|
28 ${INSTALL} -g 314 -o 314 images/* ${WWWDIR}/images/ |
|
29 cp -r jqwidgets/* ${WWWDIR}/jqwidgets/ |
|
30 chown -R 314:314 ${WWWDIR}/jqwidgets |
|
31 ${INSTALL} -g 314 -o 314 js/* ${WWWDIR}/js/ |
21 |
32 |
22 filelist: Makefile |
33 filelist: Makefile |
23 BASE=`pwd`; \ |
34 BASE=`pwd`; \ |
24 BASE=`basename $${BASE}`; \ |
35 BASE=`basename $${BASE}`; \ |
25 (for f in ${SRC} ${OTHER} ;do echo ${PACKAGE}-${VERSION}/$${BASE}/$$f; done) >filelist |
36 (for f in ${SRC} ${SUB} ${OTHER} ;do echo ${PACKAGE}-${VERSION}/$${BASE}/$$f; done) >filelist |
26 |
37 |
27 depend: |
38 depend: |
28 |
39 |