Wed, 23 Oct 2019 14:20:50 +0200
Added the product divide scripts. All parts have all the volumes and weights divided, including the master record. Splitted batches have their own records with the product code formatted as code-n. From this design, we can rebuild the print and checklist.
2 | 1 | # Makefile for the bms webserver |
341
9c4bc199be9e
Added product forum export and changed the export menu.
Michiel Broek <mbroek@mbse.eu>
parents:
311
diff
changeset
|
2 | # Copyright (c) 2018-2019 by M. Broek. |
2 | 3 | |
4 | include ../Makefile.global | |
5 | ||
506
8ab0e87d579e
Added beer selection in the CO2 meter screen. Added CO2 pressure logging.
Michiel Broek <mbroek@mbse.eu>
parents:
498
diff
changeset
|
6 | SRC = cmd_fermenter.php cmd_co2meter.php \ |
8ab0e87d579e
Added beer selection in the CO2 meter screen. Added CO2 pressure logging.
Michiel Broek <mbroek@mbse.eu>
parents:
498
diff
changeset
|
7 | config.php.dist crontasks.php favicon.ico gen_about.php \ |
507
17f244137a9b
Add refermentation logfile and graph.
Michiel Broek <mbroek@mbse.eu>
parents:
506
diff
changeset
|
8 | getbrewlog.php getco2meter.php getco2pressurelog.php getfermentablesources.php \ |
17f244137a9b
Add refermentation logfile and graph.
Michiel Broek <mbroek@mbse.eu>
parents:
506
diff
changeset
|
9 | getfermenter.php getfermentlog.php gethopsources.php getmiscsources.php getnode.php \ |
506
8ab0e87d579e
Added beer selection in the CO2 meter screen. Added CO2 pressure logging.
Michiel Broek <mbroek@mbse.eu>
parents:
498
diff
changeset
|
10 | getwatersources.php getyeastsources.php import_ingredients.php index.php \ |
173 | 11 | inv_equipments.php inv_fermentables.php inv_hops.php inv_instock.php \ |
303 | 12 | inv_miscs.php inv_suppliers.php inv_waters.php inv_yeasts.php \ |
506
8ab0e87d579e
Added beer selection in the CO2 meter screen. Added CO2 pressure logging.
Michiel Broek <mbroek@mbse.eu>
parents:
498
diff
changeset
|
13 | log_brew.php log_co2pressure.php log_fermentation.php \ |
8ab0e87d579e
Added beer selection in the CO2 meter screen. Added CO2 pressure logging.
Michiel Broek <mbroek@mbse.eu>
parents:
498
diff
changeset
|
14 | mon_brewer.php mon_co2meter.php mon_fermenter.php mon_node.php \ |
302
d0f7b4ab000f
Added product export screen with choices to export to beerxml, duplicate product or copy to recipe. Products in wait state can now be deleted.
Michiel Broek <mbroek@mbse.eu>
parents:
297
diff
changeset
|
15 | prod_archive_code.php prod_archive_date.php prod_archive_name.php prod_beerxml.php \ |
498
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
466
diff
changeset
|
16 | prod_checklist.php prod_divide.php prod_duplicate.php prod_edit.php prod_export.php prod_forum.php \ |
398
7e8f1a7ddeeb
Split the checklist out of prod_print.php into prod_checklist.php
Michiel Broek <mbroek@mbse.eu>
parents:
360
diff
changeset
|
17 | prod_impbrew.php prod_inprod.php prod_new.php prod_print.php prod_torecipe.php \ |
454
f05ced2b5124
Added yeast performance report.
Michiel Broek <mbroek@mbse.eu>
parents:
453
diff
changeset
|
18 | prod_r_efficiency.php prod_r_yeast.php prod_r_totals.php \ |
303 | 19 | profile_fermentation.php profile_mash.php profile_setup.php profile_styles.php \ |
20 | profile_water.php \ | |
360 | 21 | rec_beerxml.php rec_duplicate.php rec_edit.php rec_export.php rec_forum.php \ |
22 | rec_import.php rec_main.php rec_new.php rec_print.php rec_toproduct.php \ | |
311
f6fafccd8a6d
Added xml import for fermentables, hops, miscs, yeasts and styles. Fixed update IBU calculation in the editor hop popups.
Michiel Broek <mbroek@mbse.eu>
parents:
309
diff
changeset
|
23 | upl_brew.php upl_fermentables.php upl_hops.php upl_miscs.php upl_recipe.php \ |
f6fafccd8a6d
Added xml import for fermentables, hops, miscs, yeasts and styles. Fixed update IBU calculation in the editor hop popups.
Michiel Broek <mbroek@mbse.eu>
parents:
309
diff
changeset
|
24 | upl_styles.php upl_yeasts.php version.php |
5
36387e45a194
Added Makefile install commands
Michiel Broek <mbroek@mbse.eu>
parents:
4
diff
changeset
|
25 | 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
|
26 | jqwidgets/styles/images/* jqwidgets/globalization/* js/* \ |
81 | 27 | includes/* fpdf/* import/* |
2 | 28 | OTHER = Makefile |
464 | 29 | CSS_FILES = $(filter-out %-min.css,$(wildcard css/*.css css/**/*.css )) |
30 | YUI_COMPRESSOR = yui-compressor | |
31 | YUI_COMPRESSOR_FLAGS = --charset utf-8 --verbose | |
463
0efdafd23753
Switched to compressed javascript and css files using the yui-compressor
Michiel Broek <mbroek@mbse.eu>
parents:
454
diff
changeset
|
32 | |
0efdafd23753
Switched to compressed javascript and css files using the yui-compressor
Michiel Broek <mbroek@mbse.eu>
parents:
454
diff
changeset
|
33 | CSS_MINIFIED = $(CSS_FILES:.css=-min.css) |
0efdafd23753
Switched to compressed javascript and css files using the yui-compressor
Michiel Broek <mbroek@mbse.eu>
parents:
454
diff
changeset
|
34 | |
0efdafd23753
Switched to compressed javascript and css files using the yui-compressor
Michiel Broek <mbroek@mbse.eu>
parents:
454
diff
changeset
|
35 | |
2 | 36 | |
37 | ############################################################################# | |
38 | ||
39 | .c.o: | |
40 | ${CC} ${CFLAGS} ${INCLUDES} ${DEFINES} -c $< | |
41 | ||
522
35675eadc655
Removed yui-compressor on javascript files.
Michiel Broek <mbroek@mbse.eu>
parents:
507
diff
changeset
|
42 | all: minify-css |
2 | 43 | |
44 | clean: | |
522
35675eadc655
Removed yui-compressor on javascript files.
Michiel Broek <mbroek@mbse.eu>
parents:
507
diff
changeset
|
45 | rm -f version.php ${CSS_MINIFIED} |
2 | 46 | |
463
0efdafd23753
Switched to compressed javascript and css files using the yui-compressor
Michiel Broek <mbroek@mbse.eu>
parents:
454
diff
changeset
|
47 | minify-css: $(CSS_FILES) $(CSS_MINIFIED) |
0efdafd23753
Switched to compressed javascript and css files using the yui-compressor
Michiel Broek <mbroek@mbse.eu>
parents:
454
diff
changeset
|
48 | |
0efdafd23753
Switched to compressed javascript and css files using the yui-compressor
Michiel Broek <mbroek@mbse.eu>
parents:
454
diff
changeset
|
49 | %-min.css: %.css |
0efdafd23753
Switched to compressed javascript and css files using the yui-compressor
Michiel Broek <mbroek@mbse.eu>
parents:
454
diff
changeset
|
50 | @echo '==> Minifying $<' |
0efdafd23753
Switched to compressed javascript and css files using the yui-compressor
Michiel Broek <mbroek@mbse.eu>
parents:
454
diff
changeset
|
51 | $(YUI_COMPRESSOR) $(YUI_COMPRESSOR_FLAGS) --type css $< >$@ |
0efdafd23753
Switched to compressed javascript and css files using the yui-compressor
Michiel Broek <mbroek@mbse.eu>
parents:
454
diff
changeset
|
52 | @echo |
0efdafd23753
Switched to compressed javascript and css files using the yui-compressor
Michiel Broek <mbroek@mbse.eu>
parents:
454
diff
changeset
|
53 | |
2 | 54 | install: |
189
6470e5c6a001
In bmsd added missing json percent. The Makefile didn't install the fpdf library. Added profile commands. Small changes to the monitor fermenters screen. The monitor fermenters scheduler is now more responsive. Profiles selection and commands in the remote thermferm.
Michiel Broek <mbroek@mbse.eu>
parents:
186
diff
changeset
|
55 | ${INSTALL} -d -g 314 -o 314 ${PREFIX} ${WWWDIR} ${WWWDIR}/css ${WWWDIR}/fpdf \ |
6470e5c6a001
In bmsd added missing json percent. The Makefile didn't install the fpdf library. Added profile commands. Small changes to the monitor fermenters screen. The monitor fermenters scheduler is now more responsive. Profiles selection and commands in the remote thermferm.
Michiel Broek <mbroek@mbse.eu>
parents:
186
diff
changeset
|
56 | ${WWWDIR}/fpdf/font \ |
24 | 57 | ${WWWDIR}/jqwidgets ${WWWDIR}/js ${WWWDIR}/images/ ${WWWDIR}/includes/ |
183
a810539dc218
Added cmd_fermenter.php which interfaces http POST commands to MQTT using mosquitto_pub in a shell. Several chnges to the monitor fermenter screen.
Michiel Broek <mbroek@mbse.eu>
parents:
178
diff
changeset
|
58 | ${INSTALL} -d -g 314 -o 314 -m 0777 ${WWWDIR}/run |
194
d202777ebae5
Added design notes for the csv log format from fermenters. In bmsd configuration added the web_root entry. Switched fermenter DLOG messages to store the log in flat csv files instead of the database. This is much faster and the graphs look better.
Michiel Broek <mbroek@mbse.eu>
parents:
189
diff
changeset
|
59 | ${INSTALL} -d -g 314 -o 314 ${WWWDIR}/log |
d202777ebae5
Added design notes for the csv log format from fermenters. In bmsd configuration added the web_root entry. Switched fermenter DLOG messages to store the log in flat csv files instead of the database. This is much faster and the graphs look better.
Michiel Broek <mbroek@mbse.eu>
parents:
189
diff
changeset
|
60 | ${INSTALL} -d -g 314 -o 314 ${WWWDIR}/log/brews |
d202777ebae5
Added design notes for the csv log format from fermenters. In bmsd configuration added the web_root entry. Switched fermenter DLOG messages to store the log in flat csv files instead of the database. This is much faster and the graphs look better.
Michiel Broek <mbroek@mbse.eu>
parents:
189
diff
changeset
|
61 | ${INSTALL} -d -g 314 -o 314 ${WWWDIR}/log/fermentation |
249
96e6c726d563
Fix permissions in the web directories.
Michiel Broek <mbroek@mbse.eu>
parents:
194
diff
changeset
|
62 | ${INSTALL} -g 314 -o 314 -m 0644 ${SRC} ${WWWDIR}/ |
96e6c726d563
Fix permissions in the web directories.
Michiel Broek <mbroek@mbse.eu>
parents:
194
diff
changeset
|
63 | ${INSTALL} -g 314 -o 314 -m 0644 version.php ${WWWDIR}/ |
96e6c726d563
Fix permissions in the web directories.
Michiel Broek <mbroek@mbse.eu>
parents:
194
diff
changeset
|
64 | ${INSTALL} -g 314 -o 314 -m 0644 css/* ${WWWDIR}/css/ |
96e6c726d563
Fix permissions in the web directories.
Michiel Broek <mbroek@mbse.eu>
parents:
194
diff
changeset
|
65 | ${INSTALL} -g 314 -o 314 -m 0644 images/* ${WWWDIR}/images/ |
96e6c726d563
Fix permissions in the web directories.
Michiel Broek <mbroek@mbse.eu>
parents:
194
diff
changeset
|
66 | ${INSTALL} -g 314 -o 314 -m 0644 includes/* ${WWWDIR}/includes/ |
5
36387e45a194
Added Makefile install commands
Michiel Broek <mbroek@mbse.eu>
parents:
4
diff
changeset
|
67 | cp -r jqwidgets/* ${WWWDIR}/jqwidgets/ |
36387e45a194
Added Makefile install commands
Michiel Broek <mbroek@mbse.eu>
parents:
4
diff
changeset
|
68 | chown -R 314:314 ${WWWDIR}/jqwidgets |
249
96e6c726d563
Fix permissions in the web directories.
Michiel Broek <mbroek@mbse.eu>
parents:
194
diff
changeset
|
69 | cp -r -p fpdf/* ${WWWDIR}/fpdf/ |
189
6470e5c6a001
In bmsd added missing json percent. The Makefile didn't install the fpdf library. Added profile commands. Small changes to the monitor fermenters screen. The monitor fermenters scheduler is now more responsive. Profiles selection and commands in the remote thermferm.
Michiel Broek <mbroek@mbse.eu>
parents:
186
diff
changeset
|
70 | chown -R 314:314 ${WWWDIR}/fpdf |
249
96e6c726d563
Fix permissions in the web directories.
Michiel Broek <mbroek@mbse.eu>
parents:
194
diff
changeset
|
71 | ${INSTALL} -g 314 -o 314 -m 0644 js/* ${WWWDIR}/js/ |
2 | 72 | |
73 | filelist: Makefile | |
74 | BASE=`pwd`; \ | |
75 | BASE=`basename $${BASE}`; \ | |
5
36387e45a194
Added Makefile install commands
Michiel Broek <mbroek@mbse.eu>
parents:
4
diff
changeset
|
76 | (for f in ${SRC} ${SUB} ${OTHER} ;do echo ${PACKAGE}-${VERSION}/$${BASE}/$$f; done) >filelist |
2 | 77 | |
78 | depend: | |
79 |