Makefile

Mon, 25 Mar 2024 17:14:56 +0100

author
Michiel Broek <mbroek@mbse.eu>
date
Mon, 25 Mar 2024 17:14:56 +0100
changeset 650
0b215e4b814e
parent 3
e854e3d704de
permissions
-rw-r--r--

Brought the retry attempts to read the DHT11 sensors to the main devices loop. The actual read function is now very simple. Called every 30 seconds when all is well, or 2 seconds if something is wrong.

# Top-level makefile for mbsePi-apps.

include Makefile.global

OTHER		= ChangeLog COPYING Makefile Makefile.global.in aclocal.m4 \
		  config.h.in configure configure.ac
TARFILE		= ${PACKAGE}-${VERSION}.tar.bz2

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


all depend:
		for d in ${SUBDIRS}; do (cd $$d && ${MAKE} $@) || exit; done;

install:
		for d in ${SUBDIRS}; do (cd $$d && ${MAKE} $@) || exit; done;

dist tar:	${TARFILE}

clean:
		for d in ${SUBDIRS}; do (cd $$d && ${MAKE} $@) || exit; done;
		rm -f .filelist core ${TARFILE} config.h Makefile.global

${TARFILE}:	.filelist
		cd ..; ln -s ${PACKAGE} ${PACKAGE}-${VERSION} ; rm -f ${TARFILE}; \
		${TAR} cvTf ./${PACKAGE}-${VERSION}/.filelist - | bzip2 >${TARFILE} ; \
		rm -f ${PACKAGE}-${VERSION}

.filelist filelist:
		(for f in ${OTHER} ;do echo ${PACKAGE}-${VERSION}/$$f; done) >.filelist
		for d in ${SUBDIRS}; do (cd $$d && ${MAKE} filelist && cat filelist >>../.filelist) || exit; done;

mercurial