aboutsummaryrefslogtreecommitdiffstats
path: root/misc
diff options
context:
space:
mode:
authorjkoshy <jkoshy@FreeBSD.org>1998-10-26 11:10:58 +0800
committerjkoshy <jkoshy@FreeBSD.org>1998-10-26 11:10:58 +0800
commit0f9e6ac23b1afe3229014caebd27688391424fa5 (patch)
tree38dcd8f99ee346143430b1e6df870feb8e354e0e /misc
parenta365b4a5263784b3f9362310c60fd2c121d80413 (diff)
downloadfreebsd-ports-gnome-0f9e6ac23b1afe3229014caebd27688391424fa5.tar.gz
freebsd-ports-gnome-0f9e6ac23b1afe3229014caebd27688391424fa5.tar.zst
freebsd-ports-gnome-0f9e6ac23b1afe3229014caebd27688391424fa5.zip
Do something sensible for make clean if TET_ROOT is not defined. Add
trailing slash to MASTER_SITE. Pointed-out-by: Steve Price and Andreas Klemm.
Diffstat (limited to 'misc')
-rw-r--r--misc/tet/Makefile16
1 files changed, 12 insertions, 4 deletions
diff --git a/misc/tet/Makefile b/misc/tet/Makefile
index 099e08583cc5..8afe119264ed 100644
--- a/misc/tet/Makefile
+++ b/misc/tet/Makefile
@@ -3,13 +3,13 @@
# Date created: 02 Oct 1998
# Whom: jkoshy
#
-# $Id: Makefile,v 1.1.1.1 1998/10/21 08:31:08 jkoshy Exp $
+# $Id: Makefile,v 1.2 1998/10/25 00:58:16 jkoshy Exp $
#
DISTNAME= tet3.2c-unsup
PKGNAME= tet-3.2c
CATEGORIES= misc
-MASTER_SITES= ftp://ftp.rdg.opengroup.org/pub/TET/TET3
+MASTER_SITES= ftp://ftp.rdg.opengroup.org/pub/TET/TET3/
EXTRACT_SUFX= .src.tgz
MAINTAINER= jkoshy@freebsd.org
@@ -24,18 +24,26 @@ TET_CONFIG_TARGET?= inet # options are `lite', `xti' and `inet'
do-build:
cd ${WRKDIR}/src && ${MAKE} ${ALL_TARGET}
-pre-extract pre-clean:
+pre-extract:
.if !defined(TET_ROOT)
@echo
@echo "The environment variable \"TET_ROOT\" is not set."
@echo "You must set it to the directory where you would like "
- @echo "this port to reside before attempting extraction or cleaning."
+ @echo "this port to reside before attempting extraction."
@echo
@false
.else
@true
.endif
+# remove the TET_ROOT directory if it exists
+pre-clean:
+.if defined(TET_ROOT)
+ if [ -d ${TET_ROOT} ]; then ${RM} -rf ${TET_ROOT}; fi
+.else
+ @true
+.endif
+
# move the work directory to $TET_ROOT after extraction
post-extract:
chmod +x ${WRKDIR}/configure