aboutsummaryrefslogtreecommitdiffstats
path: root/Mk
diff options
context:
space:
mode:
authorbapt <bapt@FreeBSD.org>2014-07-15 21:13:03 +0800
committerbapt <bapt@FreeBSD.org>2014-07-15 21:13:03 +0800
commitb20438daba1bfca27196a2a0438913ef6443fec3 (patch)
tree2ac1bbc6bb002fde5f5db5439a88b347f27d59bf /Mk
parent2abbe31fd55d56879021eaa66eadd8ba9e35b123 (diff)
downloadfreebsd-ports-gnome-b20438daba1bfca27196a2a0438913ef6443fec3.tar.gz
freebsd-ports-gnome-b20438daba1bfca27196a2a0438913ef6443fec3.tar.zst
freebsd-ports-gnome-b20438daba1bfca27196a2a0438913ef6443fec3.zip
Fix simple condition in making directories
Phabric: D101 PR: 164351 Submitted by: yaneurabeya@gmail.com Reviewed by: swills
Diffstat (limited to 'Mk')
-rw-r--r--Mk/bsd.port.mk33
1 files changed, 15 insertions, 18 deletions
diff --git a/Mk/bsd.port.mk b/Mk/bsd.port.mk
index 38efb99b7903..fb3536e8b781 100644
--- a/Mk/bsd.port.mk
+++ b/Mk/bsd.port.mk
@@ -1184,8 +1184,7 @@ STRIPBIN= ${STRIP_CMD}
# ${FILEDIR}/patch-* files from them.
.if !target(makepatch)
-makepatch:
- @${MKDIR} ${FILESDIR}
+makepatch: ${FILESDIR}
@(cd ${PATCH_WRKSRC}; \
for i in `find . -type f -name '*.orig'`; do \
ORG=$$i; \
@@ -3255,6 +3254,8 @@ options-message:
@${ECHO_MSG} "===> Found saved configuration for ${_OPTIONS_READ}"
.endif
+${_DISTDIR} ${FILESDIR} ${PKG_DBDIR} ${PREFIX} ${WRKDIR} ${WRKSRC}:
+ @${MKDIR} ${.TARGET}
# Warn user about deprecated packages. Advisory only.
@@ -3327,8 +3328,7 @@ DISTINFO_DATA?= if [ \( -n "${DISABLE_SIZE}" -a -n "${NO_CHECKSUM}" \) -o ! -f "
# Fetch
.if !target(do-fetch)
-do-fetch:
- @${MKDIR} ${_DISTDIR}
+do-fetch: ${_DISTDIR}
@cd ${_DISTDIR};\
${_MASTER_SITES_ENV} ; \
for _file in ${DISTFILES}; do \
@@ -3485,10 +3485,11 @@ do-fetch:
# Extract
-.if !target(do-extract)
-do-extract:
+clean-wrkdir:
@${RM} -rf ${WRKDIR}
- @${MKDIR} ${WRKDIR}
+
+.if !target(do-extract)
+do-extract: clean-wrkdir ${WRKDIR}
@for file in ${EXTRACT_ONLY}; do \
if ! (cd ${WRKDIR} && ${EXTRACT_CMD} ${EXTRACT_BEFORE_ARGS} ${_DISTDIR}/$$file ${EXTRACT_AFTER_ARGS});\
then \
@@ -3909,9 +3910,8 @@ install-package:
.if !target(check-already-installed)
.if !defined(NO_PKG_REGISTER) && !defined(FORCE_PKG_REGISTER)
-check-already-installed: ${TMPPLIST_SORT}
+check-already-installed: ${TMPPLIST_SORT} ${PKG_DBDIR}
@${ECHO_MSG} "===> Checking if ${PKGORIGIN} already installed"; \
- ${MKDIR} ${PKG_DBDIR}; \
already_installed=`${PKG_INFO} -q -O ${PKGORIGIN}`; \
if [ -n "$${already_installed}" ]; then \
for p in $${already_installed}; do \
@@ -3951,8 +3951,7 @@ check-umask:
.endif
.if !target(install-mtree)
-install-mtree:
- @${MKDIR} ${PREFIX}
+install-mtree: ${PREFIX}
@if [ ${UID} != 0 ]; then \
if [ -w ${PREFIX}/ ]; then \
${ECHO_MSG} "Warning: not superuser, you may get some errors during installation."; \
@@ -4202,7 +4201,7 @@ fix-plist-sequence: ${TMPPLIST}
.if !defined(DISABLE_SECURITY_CHECK)
.if !target(security-check)
-security-check:
+security-check: ${TMPPLIST}
# Scan PLIST for:
# 1. setugid files
# 2. accept()/recvfrom() which indicates network listening capability
@@ -4466,8 +4465,7 @@ delete-distfiles-list:
# Prints out a list of files to fetch (useful to do a batch fetch)
.if !target(fetch-list)
-fetch-list:
- @${MKDIR} ${_DISTDIR}
+fetch-list: ${_DISTDIR}
@(cd ${_DISTDIR}; \
${_MASTER_SITES_ENV} ; \
for _file in ${DISTFILES}; do \
@@ -4540,8 +4538,7 @@ fetch-list:
.endif
.if !target(fetch-url-list-int)
-fetch-url-list-int:
- @${MKDIR} ${_DISTDIR}
+fetch-url-list-int: ${_DISTDIR}
@(cd ${_DISTDIR}; \
${_MASTER_SITES_ENV}; \
for _file in ${DISTFILES}; do \
@@ -5499,7 +5496,7 @@ ${i:S/-//:tu}= ${WRKDIR}/${SUB_FILES:M${i}*}
# files exist.
.if !target(generate-plist)
-generate-plist:
+generate-plist: ${WRKDIR}
@${ECHO_MSG} "===> Generating temporary packing list"
@${MKDIR} `${DIRNAME} ${TMPPLIST}`
@if [ ! -f ${DESCR} ]; then ${ECHO_MSG} "** Missing pkg-descr for ${PKGNAME}."; exit 1; fi
@@ -6423,7 +6420,7 @@ _FETCH_SEQ= fetch-depends pre-fetch pre-fetch-script \
do-fetch fetch-specials post-fetch post-fetch-script
_EXTRACT_DEP= fetch
_EXTRACT_SEQ= check-build-conflicts extract-message checksum extract-depends \
- pre-extract pre-extract-script do-extract \
+ pre-extract pre-extract-script clean-wrkdir do-extract \
post-extract post-extract-script
_PATCH_DEP= extract
_PATCH_SEQ= ask-license patch-message patch-depends pathfix dos2unix fix-shebang \