Skip to content

Commit f7ea95e

Browse files
committed
Renamed pkgs/ targets/
1 parent 5a7fe05 commit f7ea95e

File tree

9 files changed

+44
-45
lines changed

9 files changed

+44
-45
lines changed

share/mk/local.dirdeps.mk

+9-3
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,12 @@ DIRDEPS := ${.TARGETS:M*/*}
1717
${.TARGETS:Nall}: all
1818
.endif
1919

20+
# making universe is special
21+
.if defined(UNIVERSE_GUARD)
22+
# these should be done by now
23+
DIRDEPS_FILTER+= N*.host
24+
.endif
25+
2026
# pseudo machines get no qualification
2127
.for m in host common
2228
M_dep_qual_fixes += C;($m),[^/.,]*$$;\1;
@@ -75,9 +81,9 @@ DIRDEPS += \
7581
DIRDEPS+= lib/clang/include
7682
.endif
7783

78-
# we need pkgs/pseudo/stage to prep the stage tree
79-
.if ${DEP_RELDIR} != "pkgs/pseudo/stage"
80-
DIRDEPS += pkgs/pseudo/stage
84+
# we need targets/pseudo/stage to prep the stage tree
85+
.if ${DEP_RELDIR} != "targets/pseudo/stage"
86+
DIRDEPS += targets/pseudo/stage
8187
.endif
8288

8389
CSU_DIR.i386 = csu/i386-elf

share/mk/local.gendirdeps.mk

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ GENDIRDEPS_FILTER+= \
55
Ncddl/usr.bin/ctf* \
66
Nlib/clang/include \
77
Nlib/libc_nonshared \
8-
Npkgs/pseudo/stage* \
8+
Ntargets/pseudo/stage* \
99
Ntools/*
1010

11-
.if ${RELDIR:Mpkgs*} == ""
11+
.if ${RELDIR:Mtargets*} == ""
1212
GENDIRDEPS_FILTER+= \
1313
Nusr.bin/clang/clang.host \
1414
Ngnu/usr.bin/cc* \

targets/Makefile

+11-18
Original file line numberDiff line numberDiff line change
@@ -35,23 +35,23 @@
3535

3636
# this is our top-level makefile
3737
.if make(pkg-*)
38-
DIRDEPS_FILTER = Mpkgs/*
38+
DIRDEPS_FILTER = Mtargets/*
3939
.endif
4040

4141
# in theory, this is what we want
42-
target_dirs = pkgs pkgs/pseudo
42+
target_dirs = targets targets/pseudo
4343
# these tweak how we do it
4444
target_prefix = pkg- build-
4545
DIRDEPS := ${.TARGETS:Nall:${target_prefix:@p@S,^$p,,@:ts:}:@t@${target_dirs:@d@$d/$t@}@:@d@${exists(${SRCTOP}/$d):?$d:}@}
4646

47-
.if ${DIRDEPS:Mpkgs/pseudo/*} != ""
47+
.if ${DIRDEPS:Mtargets/pseudo/*} != ""
4848
# all bets are off
4949
PKG_MACHINE_LIST = ${ALL_MACHINE_LIST}
5050
.endif
5151

5252
.if make(check-commit)
5353
# a special case
54-
DIRDEPS = pkgs/pseudo/check-commit
54+
DIRDEPS = targets/pseudo/check-commit
5555
.if defined(ALL_MACHINES)
5656
CHECK_MACHINE_LIST = all
5757
.undef ALL_MACHINES
@@ -127,16 +127,15 @@ start_utc := ${now_utc}
127127

128128
_begin = count-makefiles
129129

130-
# by default, we clean pkgs/ which can otherwise accumulate a lot of cruft
131-
.if ${NEED_CLEAN_PKGS:Uyes:tl} != "no"
132-
_begin += clean-pkgs
133-
.endif
134-
.if defined(SHIPDIR) && ${NEED_CLEAN_SHIPDIR:Uno:tl} != "no" && exists(${SHIPDIR})
135-
_begin += clean-shipdir
136-
.endif
137-
.if ${NEED_CLEAN_ERROR_LOGS:Uyes:tl} == "yes"
130+
__DEFAULT_YES_OPTIONS+= \
131+
CLEAN_ERROR_LOGS
132+
133+
.include <bsd.mkopt.mk>
134+
135+
.if ${MK_CLEAN_ERROR_LOGS} == "yes"
138136
_begin += clean-error-logs
139137
.endif
138+
140139
.if !empty(_begin) && !make(clean*)
141140
dirdeps: ${_begin} .WAIT
142141
.endif
@@ -167,12 +166,6 @@ _build_failed: .NOMETA
167166
clean-error-logs: .NOMETA
168167
@test ! -d ${meta_error_log:H} || rm -f ${meta_error_log:H}/*log
169168

170-
clean-pkgs: .NOMETA
171-
@rm -rf ${ALL_MACHINE_LIST:N${MACHINE}:@m@${OBJROOT}$m/pkgs@} ${OBJROOT}${MACHINE}/pkgs/*
172-
173-
clean-shipdir: .NOMETA
174-
${"${SHIPDIR:tl:Nno:N*\:*}":?rm -f ${SHIPDIR}/*:}
175-
176169
.if !target(_DIRDEP_USE)
177170
# we did not read dirdeps.mk above, the target may be here
178171
.include "Makefile.xtras"

targets/Makefile.inc

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ __${_this}__:
66
_CURDIR ?= ${.CURDIR}
77
_OBJDIR ?= ${.OBJDIR}
88

9-
.if ${RELDIR:Mpkgs/*} != "" || ${RELDIR} == "."
9+
.if ${RELDIR:Mtargets/*} != "" || ${RELDIR} == "."
1010

11-
.if ${.MAKE.LEVEL} == 0 && ${RELDIR:Mpkgs/*} != ""
11+
.if ${.MAKE.LEVEL} == 0 && ${RELDIR:Mtargets/*} != ""
1212
.if make(bootstrap*) || !exists(${_CURDIR}/${.MAKE.DEPENDFILE:T})
1313
_bootstrap_dirdeps = yes
1414
.else

targets/pseudo/the-lot/Makefile.depend

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
DEP_RELDIR := ${_PARSEDIR:S,${SRCTOP}/,,}
66

77
DIRDEPS = \
8-
pkgs/pseudo/kernel \
9-
pkgs/pseudo/toolchain \
10-
pkgs/pseudo/userland \
8+
targets/pseudo/kernel \
9+
targets/pseudo/toolchain \
10+
targets/pseudo/userland \
1111

1212
.include <dirdeps.mk>

targets/pseudo/toolchain/Makefile.depend

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ DEP_RELDIR := ${_PARSEDIR:S,${SRCTOP}/,,}
1010

1111
DIRDEPS= usr.bin/xinstall
1212
.if ${MK_CLANG} == "yes"
13-
DIRDEPS+= pkgs/pseudo/clang
13+
DIRDEPS+= targets/pseudo/clang
1414
.endif
1515
.if ${MK_GCC} == "yes"
16-
DIRDEPS+= pkgs/pseudo/gcc
16+
DIRDEPS+= targets/pseudo/gcc
1717
.endif
1818

1919
.include <dirdeps.mk>

targets/pseudo/universe/Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
#
3333

3434
# this is the RELDIR of the target we build
35-
UNIVERSE_TARGET_RELDIR?= pkgs/pseudo/the-lot
35+
UNIVERSE_TARGET_RELDIR?= targets/pseudo/the-lot
3636

3737
# the list of machines
3838
TARGET_MACHINE_LIST = i386 amd64

targets/pseudo/universe/Makefile.depend

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ DEP_RELDIR := ${_PARSEDIR:S,${SRCTOP}/,,}
88

99
# our role here is to build all the host tools etc.
1010
DIRDEPS = \
11-
pkgs/pseudo/hosttools.host \
11+
targets/pseudo/hosttools.host \
1212

1313

1414
.include <dirdeps.mk>

targets/pseudo/userland/Makefile.depend

+13-13
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,18 @@ DEP_RELDIR := ${_PARSEDIR:S,${SRCTOP}/,,}
77
DEP_MACHINE := ${.PARSEFILE:E}
88

99
DIRDEPS = \
10-
pkgs/pseudo/bin \
11-
pkgs/pseudo/cddl \
12-
pkgs/pseudo/games \
13-
pkgs/pseudo/gnu \
14-
pkgs/pseudo/include \
15-
pkgs/pseudo/kerberos5 \
16-
pkgs/pseudo/lib \
17-
pkgs/pseudo/libexec \
18-
pkgs/pseudo/sbin \
19-
pkgs/pseudo/secure \
20-
pkgs/pseudo/share \
21-
pkgs/pseudo/usr.bin \
22-
pkgs/pseudo/usr.sbin \
10+
targets/pseudo/bin \
11+
targets/pseudo/cddl \
12+
targets/pseudo/games \
13+
targets/pseudo/gnu \
14+
targets/pseudo/include \
15+
targets/pseudo/kerberos5 \
16+
targets/pseudo/lib \
17+
targets/pseudo/libexec \
18+
targets/pseudo/sbin \
19+
targets/pseudo/secure \
20+
targets/pseudo/share \
21+
targets/pseudo/usr.bin \
22+
targets/pseudo/usr.sbin \
2323

2424
.include <dirdeps.mk>

0 commit comments

Comments
 (0)