`# $Id: gnu,v 5.3 2012/12/24 15:05:52 ksb Exp $ # platform recipe for %% gnu package name %% TOP=%%/usr/local or pick a local root%% BASE= %% tar of source code wget-1.4.2 %% TARSRC= ${BASE}%% .tar.gz or .tgz or .tar %% BUILD= ${BASE}%% (sub)directory we cd into to build product %% OTHER= README %% other files in this directory %% SOURCE= Makefile ${OTHER} ${TARSRC} all: ${BASE} FRC cd ${BUILD} && ${MAKE} $@ ${BASE}: ${TARSRC} FRC zcat <${TARSRC} |tar xf - %% for gzipped files OR %% tar xf ${TARSRC} %% for non-compressed files %% cd ${BASE} && ./configure --prefix=${TOP} clean: FRC rm -rf ${BASE} deinstall: FRC cd ${BUILD} && ${MAKE} $@ depend: FRC cd ${BUILD} && ${MAKE} $@ dirs: FRC cd ${BUILD} && ${MAKE} $@ distrib: FRC cd ${BUILD} && ${MAKE} $@ install: all FRC cd ${BUILD} && ${MAKE} $@ lint: FRC cd ${BUILD} && ${MAKE} $@ mkcat: FRC cd ${BUILD} && ${MAKE} $@ print: source FRC cd ${BUILD} && ${MAKE} $@ source: ${SOURCE} spotless: clean rcsclean ${SOURCE} tags: FRC ${SOURCE}: co -q $@ FRC: 'dnl