From ceeda912e9ca3e6733b9dda49ad3a6e3cdbf1b59 Mon Sep 17 00:00:00 2001 From: Satoshi Asami Date: Sun, 27 Nov 1994 03:40:09 +0000 Subject: Add cookies to pre-patch to pre-build targets so that this sucker won't do the same thing twice. --- editors/mule-common/Makefile | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'editors/mule-common/Makefile') diff --git a/editors/mule-common/Makefile b/editors/mule-common/Makefile index 5e8f35fb7e41..3dec4421b1f9 100644 --- a/editors/mule-common/Makefile +++ b/editors/mule-common/Makefile @@ -3,7 +3,7 @@ # Date created: 22 November 1994 # Whom: Satoshi Asami (asami) # -# $Id: Makefile,v 1.2 1994/11/24 00:08:17 asami Exp $ +# $Id: Makefile,v 1.3 1994/11/26 23:07:02 ats Exp $ # DISTNAME= mule-2.1 @@ -22,6 +22,8 @@ PATCHSITE= sh.wide.ad.jp:/JAPAN/mule/ PATCHSITE= ${MASTER_SITE_OVERRIDE} .endif DEPENDS= ${PORTSDIR}/utils/Wnn +PREPATCH_COOKIE= ${.CURDIR}/work/.prepatch_done +PREBUILD_COOKIE= ${.CURDIR}/work/.prebuild_done pre-fetch: @if [ ! -d ${DISTDIR} ]; then mkdir -p ${DISTDIR}; fi @@ -33,7 +35,9 @@ pre-fetch: fi \ done -pre-patch: +pre-patch: ${PREPATCH_COOKIE} + +${PREPATCH_COOKIE}: /bin/rm -f ${WRKSRC}/src/unexsunos4.c ${WRKSRC}/src/s/freebsd.h # I took these two files from emacs-19.28 and added -lcrypt cp ${FILESDIR}/unexsunos4.c ${WRKSRC}/src @@ -42,8 +46,12 @@ pre-patch: @for file in ${PATCHFILES}; do \ gzip -c -d ${DISTDIR}/$$file | patch -d ${WRKSRC} -p1 -s; \ done + @${TOUCH} ${TOUCH_FLAGS} ${PREPATCH_COOKIE} + +pre-build: ${PREBUILD_COOKIE} -pre-build: +${PREBUILD_COOKIE}: find ${WRKSRC} -name \*.orig -exec /bin/rm -f \{} \; + @${TOUCH} ${TOUCH_FLAGS} ${PREBUILD_COOKIE} .include -- cgit v1.2.3