summaryrefslogtreecommitdiffstats
path: root/editors/mule
diff options
context:
space:
mode:
authorasami <asami@FreeBSD.org>1994-11-27 03:40:09 +0000
committerasami <asami@FreeBSD.org>1994-11-27 03:40:09 +0000
commit47a9c170311f7c631cd83f0ac6854f56b3d76434 (patch)
treee20c8cd2b761ed9a117c3243841b107abae0ecbd /editors/mule
parent6743c592c561057eea7dcbfdcb0e1c22a63adf20 (diff)
downloadFreeBSD-ports-47a9c170311f7c631cd83f0ac6854f56b3d76434.zip
FreeBSD-ports-47a9c170311f7c631cd83f0ac6854f56b3d76434.tar.gz
Add cookies to pre-patch to pre-build targets so that this sucker
won't do the same thing twice.
Diffstat (limited to 'editors/mule')
-rw-r--r--editors/mule/Makefile14
1 files changed, 11 insertions, 3 deletions
diff --git a/editors/mule/Makefile b/editors/mule/Makefile
index 5e8f35f..3dec442 100644
--- a/editors/mule/Makefile
+++ b/editors/mule/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 <bsd.port.mk>
OpenPOWER on IntegriCloud