Look conditionally in obj/ for mktoasc.

This commit is contained in:
jkh 1996-05-03 03:15:58 +00:00
parent bc100ca046
commit 02825dc73f

View File

@ -14,16 +14,21 @@ CLEANFILES+= astosc.OUT astosc.out
DEPSRCS+= astosc.OUT map3270.c mset.c
.if exists(${.CURDIR}/../tools/mkastosc/obj)
MKOBJ=${.CURDIR}/../tools/mkastosc/obj
.else
MKOBJ=${.CURDIR}/../tools/mkastosc
.endif
astosc.o: astosc.OUT
astosc.OUT: ${.CURDIR}/../ctlr/hostctlr.h ${.CURDIR}/../ctlr/function.h
astosc.OUT: ${.CURDIR}/../ctlr/${KBD} ${.CURDIR}/../tools/mkastosc/obj/mkastosc
${.CURDIR}/../tools/mkastosc/obj/mkastosc \
astosc.OUT: ${.CURDIR}/../ctlr/${KBD} ${MKOBJ}/mkastosc ${MKOBJ}/mkastosc
${.CURDIR}/../ctlr/hostctlr.h ${.CURDIR}/../ctlr/function.h \
< ${.CURDIR}/../ctlr/${KBD} > ${.TARGET}
rm -f astosc.out; ln -s astosc.OUT astosc.out
# astosc.out
${.CURDIR}/../tools/mkastosc/obj/mkastosc:
${MKOBJ}/mkastosc:
cd ${.CURDIR}/../tools/mkastosc; make
depend: .depend