Allow both SUP_UPDATE and CVS_UPDATE to be used, similar to src/Makefile

PR:		17903
Submitted by:	James Housley <jim@thehousleys.net>
Reviewed by:	billf
This commit is contained in:
James E. Housley 2000-10-31 21:00:02 +00:00
parent 1205003628
commit 66067235bb
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=34512

View File

@ -88,11 +88,7 @@ CVS?= cvs
SUPFLAGS+= -h ${SUPHOST}
.endif
update:
.if defined(SUP_UPDATE)
.if !defined(PORTSSUPFILE)
@${ECHO_MSG} "Error: Please define PORTSSUPFILE before doing make update."
@exit 1
.endif
.if defined(SUP_UPDATE) && defined(PORTSSUPFILE)
@echo "--------------------------------------------------------------"
@echo ">>> Running ${SUP}"
@echo "--------------------------------------------------------------"
@ -102,6 +98,9 @@ update:
@echo ">>> Updating ${.CURDIR} from cvs repository" ${CVSROOT}
@echo "--------------------------------------------------------------"
cd ${.CURDIR}; ${CVS} -q update -P -d
.elif defined(SUP_UPDATE) && !defined(PORTSSUPFILE)
@${ECHO_MSG} "Error: Please define PORTSSUPFILE before doing make update."
@exit 1
.else
@${ECHO_MSG} "Error: Please define either SUP_UPDATE or CVS_UPDATE first."
.endif