aboutsummaryrefslogtreecommitdiff
path: root/share/mk/meta.stage.mk
diff options
context:
space:
mode:
authorBryan Drewery <bdrewery@FreeBSD.org>2015-10-02 06:24:09 +0000
committerBryan Drewery <bdrewery@FreeBSD.org>2015-10-02 06:24:09 +0000
commit1b6f33d9aceaf2eefbb94fdfce7bbe990aeff7a9 (patch)
tree8d640b264dc47042130fced781f13326316d763b /share/mk/meta.stage.mk
parentbf0b7b45273c415c4445725a5253dcb31663f292 (diff)
downloadsrc-1b6f33d9aceaf2eefbb94fdfce7bbe990aeff7a9.tar.gz
src-1b6f33d9aceaf2eefbb94fdfce7bbe990aeff7a9.zip
Notes
Diffstat (limited to 'share/mk/meta.stage.mk')
-rw-r--r--share/mk/meta.stage.mk7
1 files changed, 4 insertions, 3 deletions
diff --git a/share/mk/meta.stage.mk b/share/mk/meta.stage.mk
index 467e33954a34..7f6c3b3691c2 100644
--- a/share/mk/meta.stage.mk
+++ b/share/mk/meta.stage.mk
@@ -237,10 +237,11 @@ stage_as.$s: .dirdep
CLEANFILES += ${STAGE_TARGETS} stage_incs stage_includes
# stage_*links usually needs to follow any others.
-.for t in ${STAGE_TARGETS:N*links:O:u}
-.ORDER: $t stage_links
-.ORDER: $t stage_symlinks
+.if !empty(STAGE_SETS) && !empty(STAGE_TARGETS:Nstage_links)
+.for s in ${STAGE_SETS:O:u}
+stage_links.$s: ${STAGE_TARGETS:Nstage_links:O:u}
.endfor
+.endif
# make sure this exists
staging: