Mon, 19 Nov 2018 20:21:56 +0100
Prepare for production brews databases
2 | 1 | # Makefile for the bms webserver |
2 | # Copyright (c) 2018 by M. Broek. | |
3 | ||
4 | include ../Makefile.global | |
5 | ||
81 | 6 | SRC = config.php.dist gethopsources.php getyeastsources.php inv_hops.php \ |
7 | inv_waters.php mon_node.php rec_edit.php version.php gen_about.php \ | |
8 | getmiscsources.php index.php inv_instock.php inv_yeasts.php \ | |
9 | profile_mash.php rec_main.php getfermentablesources.php getnode.php \ | |
10 | inv_equipments.php inv_miscs.php mon_brewer.php profile_styles.php \ | |
11 | rec_new.php getfermenter.php getwatersources.php inv_fermentables.php \ | |
12 | inv_suppliers.php mon_fermenter.php profile_water.php rec_print.php | |
5
36387e45a194
Added Makefile install commands
Michiel Broek <mbroek@mbse.eu>
parents:
4
diff
changeset
|
13 | 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
|
14 | jqwidgets/styles/images/* jqwidgets/globalization/* js/* \ |
81 | 15 | includes/* fpdf/* import/* |
2 | 16 | OTHER = Makefile |
17 | ||
18 | ############################################################################# | |
19 | ||
20 | .c.o: | |
21 | ${CC} ${CFLAGS} ${INCLUDES} ${DEFINES} -c $< | |
22 | ||
23 | all: | |
24 | ||
25 | clean: | |
26 | rm -f version.php | |
27 | ||
28 | install: | |
5
36387e45a194
Added Makefile install commands
Michiel Broek <mbroek@mbse.eu>
parents:
4
diff
changeset
|
29 | ${INSTALL} -d -g 314 -o 314 ${PREFIX} ${WWWDIR} ${WWWDIR}/css \ |
24 | 30 | ${WWWDIR}/jqwidgets ${WWWDIR}/js ${WWWDIR}/images/ ${WWWDIR}/includes/ |
5
36387e45a194
Added Makefile install commands
Michiel Broek <mbroek@mbse.eu>
parents:
4
diff
changeset
|
31 | ${INSTALL} -g 314 -o 314 ${SRC} ${WWWDIR}/ |
36387e45a194
Added Makefile install commands
Michiel Broek <mbroek@mbse.eu>
parents:
4
diff
changeset
|
32 | ${INSTALL} -g 314 -o 314 version.php ${WWWDIR}/ |
36387e45a194
Added Makefile install commands
Michiel Broek <mbroek@mbse.eu>
parents:
4
diff
changeset
|
33 | ${INSTALL} -g 314 -o 314 css/* ${WWWDIR}/css/ |
36387e45a194
Added Makefile install commands
Michiel Broek <mbroek@mbse.eu>
parents:
4
diff
changeset
|
34 | ${INSTALL} -g 314 -o 314 images/* ${WWWDIR}/images/ |
24 | 35 | ${INSTALL} -g 314 -o 314 includes/* ${WWWDIR}/includes/ |
5
36387e45a194
Added Makefile install commands
Michiel Broek <mbroek@mbse.eu>
parents:
4
diff
changeset
|
36 | cp -r jqwidgets/* ${WWWDIR}/jqwidgets/ |
36387e45a194
Added Makefile install commands
Michiel Broek <mbroek@mbse.eu>
parents:
4
diff
changeset
|
37 | chown -R 314:314 ${WWWDIR}/jqwidgets |
36387e45a194
Added Makefile install commands
Michiel Broek <mbroek@mbse.eu>
parents:
4
diff
changeset
|
38 | ${INSTALL} -g 314 -o 314 js/* ${WWWDIR}/js/ |
2 | 39 | |
40 | filelist: Makefile | |
41 | BASE=`pwd`; \ | |
42 | BASE=`basename $${BASE}`; \ | |
5
36387e45a194
Added Makefile install commands
Michiel Broek <mbroek@mbse.eu>
parents:
4
diff
changeset
|
43 | (for f in ${SRC} ${SUB} ${OTHER} ;do echo ${PACKAGE}-${VERSION}/$${BASE}/$$f; done) >filelist |
2 | 44 | |
45 | depend: | |
46 |