From: Kirk McKusick Date: Sat, 27 Apr 1985 07:31:45 +0000 (-0800) Subject: use basename instead of non standard make extension X-Git-Tag: BSD-4_3-Snapshot-Development~8184 X-Git-Url: https://git.subgeniuskitty.com/unix-history/.git/commitdiff_plain/802071aa307ea3ac28337d1595bdf4f96c9452c9 use basename instead of non standard make extension SCCS-vsn: usr.bin/pascal/pc0/Makefile 2.4 --- diff --git a/usr/src/usr.bin/pascal/pc0/Makefile b/usr/src/usr.bin/pascal/pc0/Makefile index 163f309424..06d2401ed9 100644 --- a/usr/src/usr.bin/pascal/pc0/Makefile +++ b/usr/src/usr.bin/pascal/pc0/Makefile @@ -1,4 +1,4 @@ -SCCSID = "@(#)Makefile 2.3 %G%" +SCCSID = "@(#)Makefile 2.4 %G%" INSTALLDIR = $(DESTDIR)/usr/lib INSTALLNAME = ${INSTALLDIR}/pc0 @@ -60,10 +60,11 @@ a.out: ${OBJS} y.tab.o config.c ${CC} ${CFLAGS} ${LDFLAGS} ${OBJS} y.tab.o config.c ${OBJS}: - ${RM} $*.c - cd ${SRCDIR}; ${MKSTR} - ${BINDIR}/${ERRORSTRINGS} ${BINDIR}/ $*.c - ${CC} ${CFLAGS} -I. -I${SRCDIR} -c $*.c - ${RM} $*.c + ${RM} `basename $@ .o`.c + cd ${SRCDIR}; \ + ${MKSTR} - ${BINDIR}/${ERRORSTRINGS} ${BINDIR}/ `basename $@ .o`.c + ${CC} ${CFLAGS} -I. -I${SRCDIR} -c `basename $@ .o`.c + ${RM} `basename $@ .o`.c lint: cd ${SRCDIR}; lint -I. -I${BINDIR} ${SRCS} ${BINDIR}/*.c