www/Makefile

Tue, 02 Aug 2022 11:01:33 +0200

author
Michiel Broek <mbroek@mbse.eu>
date
Tue, 02 Aug 2022 11:01:33 +0200
changeset 802
4a9f469d2201
parent 801
55c2510891b8
child 803
45e87aa8d02c
permissions
-rw-r--r--

Removed product reports and archives.

2
282e7d2bb28a Initial web server
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
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
282e7d2bb28a Initial web server
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
3
282e7d2bb28a Initial web server
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
4 include ../Makefile.global
282e7d2bb28a Initial web server
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
5
801
55c2510891b8 Removed the rest of the database editors, all is now better and completer in the new application.
Michiel Broek <mbroek@mbse.eu>
parents: 800
diff changeset
6 SRC = 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
7 getbrewlog.php getco2meter.php getco2pressurelog.php getfermentablesources.php \
17f244137a9b Add refermentation logfile and graph.
Michiel Broek <mbroek@mbse.eu>
parents: 506
diff changeset
8 getfermenter.php getfermentlog.php gethopsources.php getmiscsources.php getnode.php \
580
9cd6873bda75 Fixed ispindel_death. Added ispindel log graph.
Michiel Broek <mbroek@mbse.eu>
parents: 578
diff changeset
9 getwatersources.php getyeastsources.php getispindel.php getispindellog.php \
9cd6873bda75 Fixed ispindel_death. Added ispindel log graph.
Michiel Broek <mbroek@mbse.eu>
parents: 578
diff changeset
10 import_ingredients.php index.php \
9cd6873bda75 Fixed ispindel_death. Added ispindel log graph.
Michiel Broek <mbroek@mbse.eu>
parents: 578
diff changeset
11 log_brew.php log_co2pressure.php log_fermentation.php log_ispindel.php \
571
468377312726 Added iSpindel monitor screen design.
Michiel Broek <mbroek@mbse.eu>
parents: 563
diff changeset
12 mon_brewer.php mon_co2meter.php mon_fermenter.php mon_ispindel.php mon_node.php \
802
4a9f469d2201 Removed product reports and archives.
Michiel Broek <mbroek@mbse.eu>
parents: 801
diff changeset
13 prod_beerxml.php prod_checklist.php prod_divide.php prod_duplicate.php \
4a9f469d2201 Removed product reports and archives.
Michiel Broek <mbroek@mbse.eu>
parents: 801
diff changeset
14 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
15 prod_impbrew.php prod_inprod.php prod_new.php prod_print.php prod_torecipe.php \
360
38d982a42955 Update the Makefile.
Michiel Broek <mbroek@mbse.eu>
parents: 356
diff changeset
16 rec_beerxml.php rec_duplicate.php rec_edit.php rec_export.php rec_forum.php \
38d982a42955 Update the Makefile.
Michiel Broek <mbroek@mbse.eu>
parents: 356
diff changeset
17 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
18 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
19 upl_styles.php upl_yeasts.php version.php
5
36387e45a194 Added Makefile install commands
Michiel Broek <mbroek@mbse.eu>
parents: 4
diff changeset
20 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
21 jqwidgets/styles/images/* jqwidgets/globalization/* js/* \
81
aad866b2bcea Fixed extra include file
Michiel Broek <mbroek@mbse.eu>
parents: 36
diff changeset
22 includes/* fpdf/* import/*
2
282e7d2bb28a Initial web server
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
23 OTHER = Makefile
463
0efdafd23753 Switched to compressed javascript and css files using the yui-compressor
Michiel Broek <mbroek@mbse.eu>
parents: 454
diff changeset
24
0efdafd23753 Switched to compressed javascript and css files using the yui-compressor
Michiel Broek <mbroek@mbse.eu>
parents: 454
diff changeset
25
2
282e7d2bb28a Initial web server
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
26
282e7d2bb28a Initial web server
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
27 #############################################################################
282e7d2bb28a Initial web server
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
28
282e7d2bb28a Initial web server
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
29 .c.o:
282e7d2bb28a Initial web server
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
30 ${CC} ${CFLAGS} ${INCLUDES} ${DEFINES} -c $<
282e7d2bb28a Initial web server
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
31
667
1246550451ca Removed the last compressed css file. Reworked all mash steps, implemented deconction steps. Added calculations for infuse amounts and decoctions amounts. The mash steps are now manually sorted in the editor grids to have full control over the steps order. Display errors in red in the grid. Updated beerxml export, the product checklist and print output of the products and recipes for all these mash steps changes.
Michiel Broek <mbroek@mbse.eu>
parents: 626
diff changeset
32 all:
2
282e7d2bb28a Initial web server
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
33
282e7d2bb28a Initial web server
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
34 clean:
667
1246550451ca Removed the last compressed css file. Reworked all mash steps, implemented deconction steps. Added calculations for infuse amounts and decoctions amounts. The mash steps are now manually sorted in the editor grids to have full control over the steps order. Display errors in red in the grid. Updated beerxml export, the product checklist and print output of the products and recipes for all these mash steps changes.
Michiel Broek <mbroek@mbse.eu>
parents: 626
diff changeset
35 rm -f version.php
463
0efdafd23753 Switched to compressed javascript and css files using the yui-compressor
Michiel Broek <mbroek@mbse.eu>
parents: 454
diff changeset
36
2
282e7d2bb28a Initial web server
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
37 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
38 ${INSTALL} -d -g 314 -o 314 ${PREFIX} ${WWWDIR} ${WWWDIR}/css ${WWWDIR}/fpdf \
581
fc276025d047 Added ispindel script
Michiel Broek <mbroek@mbse.eu>
parents: 580
diff changeset
39 ${WWWDIR}/fpdf/font ${WWWDIR}/ispindel \
24
754c56e785c6 Fixed web installation
Michiel Broek <mbroek@mbse.eu>
parents: 23
diff changeset
40 ${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
41 ${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
42 ${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
43 ${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
44 ${INSTALL} -d -g 314 -o 314 ${WWWDIR}/log/fermentation
574
b436e3d8d83a Added init script
Michiel Broek <mbroek@mbse.eu>
parents: 571
diff changeset
45 ${INSTALL} -d -g 314 -o 314 ${WWWDIR}/log/co2pressure
578
e75ce5bbda73 Changed the interface from the iSpindels to be the same as other devices. A webpage converts each call to two standard MQTT messages. The nodes MQTT message extended with an interval parameter. iSpindels now have a generated uuid made up from the chipid.
Michiel Broek <mbroek@mbse.eu>
parents: 574
diff changeset
46 ${INSTALL} -d -g 314 -o 314 ${WWWDIR}/log/ispindel
249
96e6c726d563 Fix permissions in the web directories.
Michiel Broek <mbroek@mbse.eu>
parents: 194
diff changeset
47 ${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
48 ${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
49 ${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
50 ${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
51 ${INSTALL} -g 314 -o 314 -m 0644 includes/* ${WWWDIR}/includes/
581
fc276025d047 Added ispindel script
Michiel Broek <mbroek@mbse.eu>
parents: 580
diff changeset
52 ${INSTALL} -g 314 -o 314 -m 0644 ispindel/* ${WWWDIR}/ispindel/
5
36387e45a194 Added Makefile install commands
Michiel Broek <mbroek@mbse.eu>
parents: 4
diff changeset
53 cp -r jqwidgets/* ${WWWDIR}/jqwidgets/
36387e45a194 Added Makefile install commands
Michiel Broek <mbroek@mbse.eu>
parents: 4
diff changeset
54 chown -R 314:314 ${WWWDIR}/jqwidgets
249
96e6c726d563 Fix permissions in the web directories.
Michiel Broek <mbroek@mbse.eu>
parents: 194
diff changeset
55 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
56 chown -R 314:314 ${WWWDIR}/fpdf
249
96e6c726d563 Fix permissions in the web directories.
Michiel Broek <mbroek@mbse.eu>
parents: 194
diff changeset
57 ${INSTALL} -g 314 -o 314 -m 0644 js/* ${WWWDIR}/js/
2
282e7d2bb28a Initial web server
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
58
282e7d2bb28a Initial web server
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
59 filelist: Makefile
282e7d2bb28a Initial web server
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
60 BASE=`pwd`; \
282e7d2bb28a Initial web server
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
61 BASE=`basename $${BASE}`; \
5
36387e45a194 Added Makefile install commands
Michiel Broek <mbroek@mbse.eu>
parents: 4
diff changeset
62 (for f in ${SRC} ${SUB} ${OTHER} ;do echo ${PACKAGE}-${VERSION}/$${BASE}/$$f; done) >filelist
2
282e7d2bb28a Initial web server
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
63
282e7d2bb28a Initial web server
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
64 depend:
282e7d2bb28a Initial web server
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
65

mercurial