tools/Makefile

Sat, 25 Sep 2021 10:42:54 +0200

author
Michiel Broek <mbroek@mbse.eu>
date
Sat, 25 Sep 2021 10:42:54 +0200
changeset 778
e64fd38c469c
parent 744
b8ccc85675a0
child 854
548e5e9af0c6
permissions
-rw-r--r--

If during styles import the CATEGORY_NUMBER is empty, insert 0 in the database instead.

# 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