mkfiles: do not rely on path containing the . element
when executing generated binaries and helper scripts, always execute them as ./name instead of relying that path contsins the dot.
This commit is contained in:
parent
0d378e905e
commit
4a9f900726
9 changed files with 12 additions and 12 deletions
|
@ -10,7 +10,7 @@ SYS=`{sed '/^#define._/d; s/#define.([A-Z0-9_]*).*/\1/' $SYSH}
|
|||
for(I in $SYS) {
|
||||
i=_^$I
|
||||
n=`{sed -n '/[ ]'$I'[ ]/s/.* //p' $SYSH}
|
||||
gencall
|
||||
./gencall
|
||||
}
|
||||
ar vu /$objtype/lib/ape/libap.a *.$O
|
||||
rm -f *.$O *.s
|
||||
|
|
|
@ -4,7 +4,7 @@ NPROC=1
|
|||
all:V: install
|
||||
|
||||
install:V: genall gencall
|
||||
genall
|
||||
./genall
|
||||
|
||||
# ugh. sources's build process can't hack absolute path names.
|
||||
# we're in /sys/src/ape/lib/ap/syscall.
|
||||
|
|
|
@ -13,4 +13,4 @@ mklatin.$cputype: mkfile.mklatin
|
|||
@{objtype=$cputype mk -f $prereq $target}
|
||||
|
||||
latin1.h: mklatin.$cputype /lib/keyboard
|
||||
$prereq >$target
|
||||
./mklatin.$cputype /lib/keyboard >$target
|
||||
|
|
|
@ -68,12 +68,12 @@ torgbv.$O: ycbcr.h rgbv.h
|
|||
ycbcr.h: rgbycc.c
|
||||
$c^c rgbycc.c
|
||||
$c^l -o $c.rgbycc rgbycc.$c
|
||||
$c.rgbycc > ycbcr.h
|
||||
./$c.rgbycc > ycbcr.h
|
||||
|
||||
rgbv.h: rgbrgbv.c
|
||||
$c^c rgbrgbv.c
|
||||
$c^l -o $c.rgbrgbv rgbrgbv.$c
|
||||
$c.rgbrgbv > rgbv.h
|
||||
./$c.rgbrgbv > rgbv.h
|
||||
|
||||
nuke:V: nuke-headers
|
||||
|
||||
|
|
|
@ -60,7 +60,7 @@ $cpuobjtype._cp: /bin/cp
|
|||
|
||||
%.safeinstall: $O.% $cpuobjtype._cp
|
||||
test -e $BIN/$stem && mv $BIN/$stem $BIN/_$stem
|
||||
$cpuobjtype._cp $O.$stem $BIN/$stem
|
||||
./$cpuobjtype._cp $O.$stem $BIN/$stem
|
||||
|
||||
%.safeinstallall:
|
||||
for(objtype in $CPUS)
|
||||
|
@ -68,7 +68,7 @@ $cpuobjtype._cp: /bin/cp
|
|||
mk $stem.clean
|
||||
|
||||
$BIN/%: $O.% $cpuobjtype._cp
|
||||
$cpuobjtype._cp $O.$stem $BIN/$stem
|
||||
./$cpuobjtype._cp $O.$stem $BIN/$stem
|
||||
|
||||
%.directories:V:
|
||||
for(i in $DIRS) @{
|
||||
|
|
|
@ -20,5 +20,5 @@ CFLAGS=-I../lib $CFLAGS
|
|||
CLEANFILES=scsierrs.c
|
||||
|
||||
scsierrs.c: /sys/lib/scsicodes mkscsierrs
|
||||
mkscsierrs >scsierrs.c
|
||||
./mkscsierrs >scsierrs.c
|
||||
|
||||
|
|
|
@ -16,10 +16,10 @@ lib: amspell brspell
|
|||
for (i in $prereq) cp $i /sys/lib/$i
|
||||
|
||||
brspell: $cpuobjtype.pcode list british local stop
|
||||
$cpuobjtype.pcode list british local stop >$target
|
||||
./$cpuobjtype.pcode list british local stop >$target
|
||||
|
||||
amspell: $cpuobjtype.pcode list american local stop
|
||||
$cpuobjtype.pcode list american local stop >$target
|
||||
./$cpuobjtype.pcode list american local stop >$target
|
||||
|
||||
$cpuobjtype.pcode: pcode.c $HFILES
|
||||
objtype=$cputype
|
||||
|
|
|
@ -38,7 +38,7 @@ charsets.txt:
|
|||
hget http://www.iana.org/assignments/character-sets | sed 's/
//' >$target
|
||||
|
||||
alias.h: charsets.awk charsets.txt alias.txt
|
||||
charsets.awk charsets.txt alias.txt >$target
|
||||
./charsets.awk charsets.txt alias.txt >$target
|
||||
|
||||
clean:V:
|
||||
rm -f *.[$OS] [$OS].out y.tab.? y.debug y.output alias.h $TARG
|
||||
|
|
|
@ -23,7 +23,7 @@ FACES=\
|
|||
</sys/src/cmd/mkone
|
||||
|
||||
%.bits:
|
||||
mkface $stem
|
||||
./mkface $stem
|
||||
|
||||
blabs.$O: $FACES
|
||||
|
||||
|
|
Loading…
Reference in a new issue