tools/Makefile

Tue, 31 Aug 2021 20:48:37 +0200

author
Michiel Broek <mbroek@mbse.eu>
date
Tue, 31 Aug 2021 20:48:37 +0200
changeset 774
92e1e8f175a2
parent 744
b8ccc85675a0
child 854
548e5e9af0c6
permissions
-rw-r--r--

Split batch, adjust mash step volume. In the duplicated log_brew handle the missing values. In save product, round the mash step sg to 4 decimals. In prod_edit, ingredients are stored as strings, not arrays. This triggered a memory corruption that only happened in rare circumstances. Don't fix mash step fields in the javascript, it is already done during load from the database. Calculation of the mash volume is rounded to 6 decimals. Enter mash step Brix/Plato value, the SG result is rounded to 4 decimals.

# Makefile for the mbsePi-apps/thermferm.

include ../Makefile.global

OTHER		= Makefile bmsd.init

#############################################################################

.c.o:
		${CC} ${CFLAGS} ${INCLUDES} ${DEFINES} -c $<

all:


clean:
		rm -f filelist Makefile.bak

install:
		@if [ -x /lib/systemd/systemd ]; then \
			${INSTALL} -c -g root -o root -m 0755 init.debian /etc/init.d/bmsd ; \
			echo "${INSTALL} -c -g root -o root -m 0755 init.debian /etc/init.d/bmsd" ; \
			[ -x /bin/systemctl ] && /bin/systemctl daemon-reload ; \
			echo "[ -x /bin/systemctl ] && /bin/systemctl daemon-reload" ; \
		elif [ -f /etc/slackware-version ]; then \
			${INSTALL} -c -g root -o root -m 0755 init.slackware /etc/rc.d/init.d/bmsd ; \
			echo "${INSTALL} -c -g root -o root -m 0755 init.slackware /etc/rc.d/init.d/bmsd" ; \
			${INSTALL} -c -g root -o root -m 0755 setup.slackware /var/log/setup/setup.bmsd ; \
			echo "${INSTALL} -c -g root -o root -m 0755 setup.slackware /var/log/setup/setup.bmsd" ; \
		else \
			echo "Unsupported distribution" ; \
		fi

filelist:	Makefile
		BASE=`pwd`; \
		BASE=`basename $${BASE}`; \
		(for f in ${SRCS} ${HDRS} ${OTHER} ;do echo ${PACKAGE}-${VERSION}/$${BASE}/$$f; done) >filelist

depend:

mercurial