diff options
Diffstat (limited to 'misc')
-rw-r--r-- | misc/tet/Makefile | 16 |
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 |