summaryrefslogtreecommitdiff
path: root/lib-src
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1995-08-18 16:23:23 +0000
committerRichard M. Stallman <rms@gnu.org>1995-08-18 16:23:23 +0000
commit61f7c95647bec472bdc039385a1e481a08d74c61 (patch)
treea777b6fc71b40803e0770cedc8feef9d82ae2f9c /lib-src
parent6f6175436ad93676561ffbcfe1ffbc7d6418a988 (diff)
downloademacs-61f7c95647bec472bdc039385a1e481a08d74c61.tar.gz
(getdate.c): New target.
(getdate.o): Just compile getdate.c.
Diffstat (limited to 'lib-src')
-rw-r--r--lib-src/Makefile.in10
1 files changed, 6 insertions, 4 deletions
diff --git a/lib-src/Makefile.in b/lib-src/Makefile.in
index f5adef67ab7..992d9715188 100644
--- a/lib-src/Makefile.in
+++ b/lib-src/Makefile.in
@@ -368,10 +368,12 @@ hexl: ${srcdir}/hexl.c
$(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}