diff options
author | asami <asami@FreeBSD.org> | 1994-11-27 11:40:09 +0800 |
---|---|---|
committer | asami <asami@FreeBSD.org> | 1994-11-27 11:40:09 +0800 |
commit | 47a9c170311f7c631cd83f0ac6854f56b3d76434 (patch) | |
tree | e20c8cd2b761ed9a117c3243841b107abae0ecbd /japanese/mule-freewnn | |
parent | 6743c592c561057eea7dcbfdcb0e1c22a63adf20 (diff) | |
download | freebsd-ports-gnome-47a9c170311f7c631cd83f0ac6854f56b3d76434.tar.gz freebsd-ports-gnome-47a9c170311f7c631cd83f0ac6854f56b3d76434.tar.zst freebsd-ports-gnome-47a9c170311f7c631cd83f0ac6854f56b3d76434.zip |
Add cookies to pre-patch to pre-build targets so that this sucker
won't do the same thing twice.
Diffstat (limited to 'japanese/mule-freewnn')
-rw-r--r-- | japanese/mule-freewnn/Makefile | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/japanese/mule-freewnn/Makefile b/japanese/mule-freewnn/Makefile index 5e8f35fb7e41..3dec4421b1f9 100644 --- a/japanese/mule-freewnn/Makefile +++ b/japanese/mule-freewnn/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> |