`# $Id: Makefile.host,v 1.4 2010/12/03 14:49:54 ksb Exp $ # platform recipe for daemon, mkcmd version PROG= daemon BIN= ${DESTDIR}/usr/local/sbin DOC= ${DESTDIR}/usr/local/man/man8 DEBUG= CDEFS= -D'HOSTTYPE` INCLUDE= CFLAGS= ${DEBUG} ${CDEFS} ${INCLUDE} GEN= main.c main.h machine.h MAN= daemon.man OTHER= README TODO config.h.in configure configure.ac daemon.m SOURCE= Makefile ITO.spec ${OTHER} ${MAN} all: ${PROG} daemon: main.c main.h ${CC} ${CFLAGS} -o $@ main.c config.h: configure ./configure main.h: main.c main.c: daemon.m mkcmd daemon.m -(cmp -s prog.c main.c || (cp prog.c main.c && echo main.c updated)) -(cmp -s prog.h main.h || (cp prog.h main.h && echo main.h updated)) rm -f prog.[ch] clean: FRC rm -f ${GEN} Makefile.bak config.h prog.[ch] main.[cho] ${PROG} a.out core errs lint.out tags deinstall: ${MAN} ${DOC} FRC install -R ${BIN}/${PROG} mkcat -r${DOC} -DDESTDIR=${DESTDIR} ${MAN} depend: FRC dirs: ${BIN} ${DOC} distrib: FRC distrib -c ${BIN}/${PROG} HOST install: all dirs FRC install -c ${PROG} ${BIN}/${PROG} lint: FRC mkcat: ${MAN} ${DOC} FRC mkcat -r${DOC} -DDESTDIR=${DESTDIR} ${MAN} print: source FRC lpr -J"${PROG} source" ${SOURCE} source: ${SOURCE} spotless: clean rcsclean ${SOURCE} tags: FRC ${BIN} ${DOC}: install -dr $@ ${SOURCE}: co -q $@ FRC: # DO NOT DELETE THIS LINE - maketd DEPENDS ON IT daemon: main.c main.h machine.h config.h # *** Do not add anything here - It will go away. *** 'dnl