`# $Id: script,v 5.3 2012/12/24 15:05:52 ksb Exp $ # platform recipe for %% script name %% TOP=%%/usr/local or pick a local root%% BIN=${DESTDIR}${TOP}/%% bin directory %% LIB=${DESTDIR}${TOP}/%% lib directory for data files %% DOC=${DESTDIR}${TOP}/%% man for the local manual page root %% PROG= %% program name %% SRCl= %% library files %% SRCs= %% one script %% MAN= %% the manual page for this tool %% OTHER= README %% other files in this directory %% SOURCE= Makefile ${OTHER} ${MAN} ${SRCl} ${SRCs} all: ${SRCl} ${PROG} ${PROG}: ${SRCs} sed -e "/^#\$$/d" -e "/^#[^!]/d" ${SRCs} >$@ chmod 755 $@ clean: FRC rm -f Makefile.bak ${PROG} a.out core errs lint.out tags deinstall: ${MAN} ${DOC} FRC install -R ${BIN}/${PROG} for dink in ${SRCl} ;\%% delete 4 lines if no SRCls %% do \ install -Rm 644 ${LIB}/$$dink ;\ done mkcat -r${DOC} -D ${MAN} depend: FRC dirs: ${BIN} ${LIB} distrib: FRC distrib -c ${BIN}/${PROG} ${LIB} HOST %% might be wrong ? %% install: all dirs FRC install -cm 644 ${SRCl} ${LIB}%% delete if no SRCls %% install -c ${PROG} ${BIN}/${PROG} lint: FRC mkcat: ${MAN} ${DOC} FRC mkcat -r${DOC} ${MAN} print: source FRC lpr -J"${PROG} source" ${SOURCE} source: ${SOURCE} spotless: clean rcsclean ${SOURCE} tags: FRC ${BIN} ${LIB}: install -dr $@ ${SOURCE}: co -q $@ FRC: 'dnl