tools/Makefile

Fri, 28 May 2021 14:25:56 +0200

author
Michiel Broek <mbroek@mbse.eu>
date
Fri, 28 May 2021 14:25:56 +0200
changeset 613
163fcb0914e2
parent 612
452f79a5ad71
child 633
8b84e73af50e
permissions
-rw-r--r--

Added kicad drawings

# Makefile for the mbsePi-apps/thermferm.

include ../Makefile.global

OTHER		= Makefile init.debian init.slackware setup.slackware

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

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

all:


clean:
		rm -f ${TARGET} *.o *.h~ *.c~ core filelist Makefile.bak

install:
		@if [ -x /lib/systemd/systemd ]; then \
			${INSTALL} -c -g root -o root -m 0755 init.debian /etc/init.d/thermferm ; \
			echo "${INSTALL} -c -g root -o root -m 0755 init.debian /etc/init.d/thermferm" ; \
			[ -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/thermferm ; \
			echo "${INSTALL} -c -g root -o root -m 0755 init.slackware /etc/rc.d/init.d/thermferm" ; \
			${INSTALL} -c -g root -o root -m 0755 setup.slackware /var/lib/pkgtools/setup/setup.thermferm ; \
			echo "${INSTALL} -c -g root -o root -m 0755 setup.slackware /var/lib/pkgtools/setup/setup.thermferm" ; \
		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