changeset 12883:c281a02dbb9f

(getdate.c): New target. (getdate.o): Just compile getdate.c.
author Richard M. Stallman <rms@gnu.org>
date Fri, 18 Aug 1995 16:23:23 +0000
parents 83fd8f17cfe4
children f47248851f26
files lib-src/Makefile.in
diffstat 1 files changed, 6 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/lib-src/Makefile.in	Thu Aug 17 22:08:36 1995 +0000
+++ b/lib-src/Makefile.in	Fri Aug 18 16:23:23 1995 +0000
@@ -368,10 +368,12 @@
 	$(CC) ${ALL_CFLAGS} ${srcdir}/hexl.c $(LOADLIBES) -o hexl
 
 TIMEROBJS=getdate.o timer.o $(ALLOCA)
-getdate.o: ${srcdir}/getdate.y ../src/config.h
-	${YACC} ${YFLAGS} ${srcdir}/getdate.y
-	$(CC) $(CPP_CFLAGS) -c y.tab.c
-	mv y.tab.o getdate.o
+$(srcdir)/getdate.c: ${srcdir}/getdate.y
+	cd $(srcdir); ${YACC} ${YFLAGS} getdate.y
+	cd $(srcdir); mv y.tab.c getdate.c
+getdate.o: ${srcdir}/getdate.c ../src/config.h
+	$(CC) $(CPP_CFLAGS) -c ${srcdir}/getdate.c
+
 timer.o: ${srcdir}/timer.c ../src/config.h
 	$(CC) -c $(CPP_CFLAGS) ${srcdir}/timer.c
 timer: ${TIMEROBJS}