a89bdde
We want to keep these y.tab.c files around because the debuginfo points to
a89bdde
them.  It would be more elegant at the end to use symbolic links, but that
a89bdde
could mess up people working in the tree on other things.
a89bdde
a89bdde
--- src/kadmin/cli/Makefile.in
a89bdde
+++ src/kadmin/cli/Makefile.in
a89bdde
@@ -43,3 +43,8 @@ clean-unix::
a89bdde
 # CC_LINK is not meant for compilation and this use may break in the future.
a89bdde
 datetest: getdate.c
a89bdde
 	$(CC_LINK) $(ALL_CFLAGS) -DTEST -o datetest getdate.c
a89bdde
+
a89bdde
+%.c: %.y
a89bdde
+	$(RM) y.tab.c $@
a89bdde
+	$(YACC.y) $< 
a89bdde
+	$(CP) y.tab.c $@
a89bdde
--- src/plugins/kdb/ldap/ldap_util/Makefile.in
a89bdde
+++ src/plugins/kdb/ldap/ldap_util/Makefile.in
a89bdde
@@ -22,7 +22,7 @@ $(PROG): $(OBJS) $(KADMSRV_DEPLIBS) $(KR
a89bdde
 getdate.c: $(GETDATE)
a89bdde
 	$(RM) getdate.c y.tab.c
a89bdde
 	$(YACC) $(GETDATE)
a89bdde
-	$(MV) y.tab.c getdate.c
a89bdde
+	$(CP) y.tab.c getdate.c
a89bdde
 
a89bdde
 install::
a89bdde
 	$(INSTALL_PROGRAM) $(PROG) ${DESTDIR}$(ADMIN_BINDIR)/$(PROG)