tools/Makefile

Thu, 14 Mar 2024 17:07:09 +0100

author
Michiel Broek <mbroek@mbse.eu>
date
Thu, 14 Mar 2024 17:07:09 +0100
changeset 633
8b84e73af50e
parent 612
452f79a5ad71
child 635
bf2c0f31147b
permissions
-rw-r--r--

Add DESTDIR installation target. Some kicad update again. Moved init script to /etc/rc.d

# Makefile for the mbsePi-apps/thermferm.

include ../Makefile.global

OTHER		= Makefile init.debian init.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 ${DESTDIR}/etc/rc.d/rc.thermferm ; \
			echo "${INSTALL} -c -g root -o root -m 0755 init.slackware ${DESTDIR}/etc/rc.d/rc.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