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