www/Makefile

Fri, 23 Aug 2019 23:17:10 +0200

author
Michiel Broek <mbroek@mbse.eu>
date
Fri, 23 Aug 2019 23:17:10 +0200
changeset 453
ec4f1d652ed7
parent 398
7e8f1a7ddeeb
child 454
f05ced2b5124
permissions
-rw-r--r--

Version 0.3.13 and updated Makefile.

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
257
62e294ab94f5 Version 0.0.6. Added a crontask that adjusts the stage of packaged beer depending on the days passed packaging
Michiel Broek <mbroek@mbse.eu>
parents: 249
diff changeset
6 SRC = cmd_fermenter.php config.php.dist crontasks.php favicon.ico gen_about.php \
303
98c2afc88780 Added recipe export menu.
Michiel Broek <mbroek@mbse.eu>
parents: 302
diff changeset
7 getbrewlog.php getfermentablesources.php getfermenter.php getfermentlog.php \
98c2afc88780 Added recipe export menu.
Michiel Broek <mbroek@mbse.eu>
parents: 302
diff changeset
8 gethopsources.php getmiscsources.php getnode.php getwatersources.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
9 getyeastsources.php import_ingredients.php index.php \
173
4cda47269c02 Updated Makefile
Michiel Broek <mbroek@mbse.eu>
parents: 111
diff changeset
10 inv_equipments.php inv_fermentables.php inv_hops.php inv_instock.php \
303
98c2afc88780 Added recipe export menu.
Michiel Broek <mbroek@mbse.eu>
parents: 302
diff changeset
11 inv_miscs.php inv_suppliers.php inv_waters.php inv_yeasts.php \
98c2afc88780 Added recipe export menu.
Michiel Broek <mbroek@mbse.eu>
parents: 302
diff changeset
12 log_brew.php log_fermentation.php \
98c2afc88780 Added recipe export menu.
Michiel Broek <mbroek@mbse.eu>
parents: 302
diff changeset
13 mon_brewer.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
14 prod_archive_code.php prod_archive_date.php prod_archive_name.php prod_beerxml.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_checklist.php prod_duplicate.php prod_edit.php prod_export.php prod_forum.php \
7e8f1a7ddeeb Split the checklist out of prod_print.php into prod_checklist.php
Michiel Broek <mbroek@mbse.eu>
parents: 360
diff changeset
16 prod_impbrew.php prod_inprod.php prod_new.php prod_print.php prod_torecipe.php \
453
ec4f1d652ed7 Version 0.3.13 and updated Makefile.
Michiel Broek <mbroek@mbse.eu>
parents: 398
diff changeset
17 prod_r_efficiency.php prod_r_totals.php \
303
98c2afc88780 Added recipe export menu.
Michiel Broek <mbroek@mbse.eu>
parents: 302
diff changeset
18 profile_fermentation.php profile_mash.php profile_setup.php profile_styles.php \
98c2afc88780 Added recipe export menu.
Michiel Broek <mbroek@mbse.eu>
parents: 302
diff changeset
19 profile_water.php \
360
38d982a42955 Update the Makefile.
Michiel Broek <mbroek@mbse.eu>
parents: 356
diff changeset
20 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
21 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
22 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
23 upl_styles.php upl_yeasts.php version.php
5
36387e45a194 Added Makefile install commands
Michiel Broek <mbroek@mbse.eu>
parents: 4
diff changeset
24 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
25 jqwidgets/styles/images/* jqwidgets/globalization/* js/* \
81
aad866b2bcea Fixed extra include file
Michiel Broek <mbroek@mbse.eu>
parents: 36
diff changeset
26 includes/* fpdf/* import/*
2
282e7d2bb28a Initial web server
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
27 OTHER = Makefile
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 #############################################################################
282e7d2bb28a Initial web server
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
30
282e7d2bb28a Initial web server
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
31 .c.o:
282e7d2bb28a Initial web server
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
32 ${CC} ${CFLAGS} ${INCLUDES} ${DEFINES} -c $<
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 all:
282e7d2bb28a Initial web server
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
35
282e7d2bb28a Initial web server
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
36 clean:
282e7d2bb28a Initial web server
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
37 rm -f version.php
282e7d2bb28a Initial web server
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
38
282e7d2bb28a Initial web server
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
39 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
40 ${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
41 ${WWWDIR}/fpdf/font \
24
754c56e785c6 Fixed web installation
Michiel Broek <mbroek@mbse.eu>
parents: 23
diff changeset
42 ${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
43 ${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
44 ${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
45 ${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
46 ${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
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/
5
36387e45a194 Added Makefile install commands
Michiel Broek <mbroek@mbse.eu>
parents: 4
diff changeset
52 cp -r jqwidgets/* ${WWWDIR}/jqwidgets/
36387e45a194 Added Makefile install commands
Michiel Broek <mbroek@mbse.eu>
parents: 4
diff changeset
53 chown -R 314:314 ${WWWDIR}/jqwidgets
249
96e6c726d563 Fix permissions in the web directories.
Michiel Broek <mbroek@mbse.eu>
parents: 194
diff changeset
54 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
55 chown -R 314:314 ${WWWDIR}/fpdf
249
96e6c726d563 Fix permissions in the web directories.
Michiel Broek <mbroek@mbse.eu>
parents: 194
diff changeset
56 ${INSTALL} -g 314 -o 314 -m 0644 js/* ${WWWDIR}/js/
2
282e7d2bb28a Initial web server
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
57
282e7d2bb28a Initial web server
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
58 filelist: Makefile
282e7d2bb28a Initial web server
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
59 BASE=`pwd`; \
282e7d2bb28a Initial web server
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
60 BASE=`basename $${BASE}`; \
5
36387e45a194 Added Makefile install commands
Michiel Broek <mbroek@mbse.eu>
parents: 4
diff changeset
61 (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
62
282e7d2bb28a Initial web server
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
63 depend:
282e7d2bb28a Initial web server
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
64

mercurial