Thu, 16 Aug 2018 16:01:13 +0200
Better error messages in syslog
2 | 1 | # Makefile for the bms webserver |
2 | # Copyright (c) 2018 by M. Broek. | |
3 | ||
4 | include ../Makefile.global | |
5 | ||
18
395833e20f88
Better error messages in syslog
Michiel Broek <mbroek@mbse.eu>
parents:
10
diff
changeset
|
6 | SRC = getfermenter.php getfermenters.php \ |
395833e20f88
Better error messages in syslog
Michiel Broek <mbroek@mbse.eu>
parents:
10
diff
changeset
|
7 | getnode.php getnodes.php config.php.dist index.php \ |
395833e20f88
Better error messages in syslog
Michiel Broek <mbroek@mbse.eu>
parents:
10
diff
changeset
|
8 | inv_suppliers.php inv_fermentables.php inv_hops.php inv_yeasts.php \ |
395833e20f88
Better error messages in syslog
Michiel Broek <mbroek@mbse.eu>
parents:
10
diff
changeset
|
9 | mon_brewer.php mon_fermenter.php mon_node.php |
5
36387e45a194
Added Makefile install commands
Michiel Broek <mbroek@mbse.eu>
parents:
4
diff
changeset
|
10 | SUB = version.php.in images/* css/* jqwidgets/* jqwidgets/styles/* \ |
10
606b4af8f918
Start of the merge with another unfinished project
Michiel Broek <mbroek@mbse.eu>
parents:
5
diff
changeset
|
11 | jqwidgets/styles/images/* jqwidgets/globalization/* js/* \ |
606b4af8f918
Start of the merge with another unfinished project
Michiel Broek <mbroek@mbse.eu>
parents:
5
diff
changeset
|
12 | includes/* |
2 | 13 | OTHER = Makefile |
14 | ||
15 | ############################################################################# | |
16 | ||
17 | .c.o: | |
18 | ${CC} ${CFLAGS} ${INCLUDES} ${DEFINES} -c $< | |
19 | ||
20 | all: | |
21 | ||
22 | clean: | |
23 | rm -f version.php | |
24 | ||
25 | install: | |
5
36387e45a194
Added Makefile install commands
Michiel Broek <mbroek@mbse.eu>
parents:
4
diff
changeset
|
26 | ${INSTALL} -d -g 314 -o 314 ${PREFIX} ${WWWDIR} ${WWWDIR}/css \ |
36387e45a194
Added Makefile install commands
Michiel Broek <mbroek@mbse.eu>
parents:
4
diff
changeset
|
27 | ${WWWDIR}/jqwidgets ${WWWDIR}/js ${WWWDIR}/images/ |
36387e45a194
Added Makefile install commands
Michiel Broek <mbroek@mbse.eu>
parents:
4
diff
changeset
|
28 | ${INSTALL} -g 314 -o 314 ${SRC} ${WWWDIR}/ |
36387e45a194
Added Makefile install commands
Michiel Broek <mbroek@mbse.eu>
parents:
4
diff
changeset
|
29 | ${INSTALL} -g 314 -o 314 version.php ${WWWDIR}/ |
36387e45a194
Added Makefile install commands
Michiel Broek <mbroek@mbse.eu>
parents:
4
diff
changeset
|
30 | ${INSTALL} -g 314 -o 314 css/* ${WWWDIR}/css/ |
36387e45a194
Added Makefile install commands
Michiel Broek <mbroek@mbse.eu>
parents:
4
diff
changeset
|
31 | ${INSTALL} -g 314 -o 314 images/* ${WWWDIR}/images/ |
36387e45a194
Added Makefile install commands
Michiel Broek <mbroek@mbse.eu>
parents:
4
diff
changeset
|
32 | cp -r jqwidgets/* ${WWWDIR}/jqwidgets/ |
36387e45a194
Added Makefile install commands
Michiel Broek <mbroek@mbse.eu>
parents:
4
diff
changeset
|
33 | chown -R 314:314 ${WWWDIR}/jqwidgets |
36387e45a194
Added Makefile install commands
Michiel Broek <mbroek@mbse.eu>
parents:
4
diff
changeset
|
34 | ${INSTALL} -g 314 -o 314 js/* ${WWWDIR}/js/ |
2 | 35 | |
36 | filelist: Makefile | |
37 | BASE=`pwd`; \ | |
38 | BASE=`basename $${BASE}`; \ | |
5
36387e45a194
Added Makefile install commands
Michiel Broek <mbroek@mbse.eu>
parents:
4
diff
changeset
|
39 | (for f in ${SRC} ${SUB} ${OTHER} ;do echo ${PACKAGE}-${VERSION}/$${BASE}/$$f; done) >filelist |
2 | 40 | |
41 | depend: | |
42 |