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.
front
cinap_lenrek 2013-10-26 20:22:01 +02:00
parent 0d378e905e
commit 4a9f900726
9 changed files with 12 additions and 12 deletions

View File

@ -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

View File

@ -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.

View File

@ -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

View File

@ -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

View File

@ -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) @{

View File

@ -20,5 +20,5 @@ CFLAGS=-I../lib $CFLAGS
CLEANFILES=scsierrs.c
scsierrs.c: /sys/lib/scsicodes mkscsierrs
mkscsierrs >scsierrs.c
./mkscsierrs >scsierrs.c

View File

@ -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

View File

@ -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

View File

@ -23,7 +23,7 @@ FACES=\
</sys/src/cmd/mkone
%.bits:
mkface $stem
./mkface $stem
blabs.$O: $FACES