allow parallel K&R
authorDavid J. MacKenzie <djm@gnu.org>
Tue, 20 Sep 1994 02:34:49 +0000 (02:34 +0000)
committerDavid J. MacKenzie <djm@gnu.org>
Tue, 20 Sep 1994 02:34:49 +0000 (02:34 +0000)
compile.am
lib/am/compile.am

index c1c25b1..aeb40bf 100644 (file)
@@ -3,9 +3,9 @@
        $(CC) -c $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) $<
 
 .krc.kro:
-       cp $< krtmp.c
-       $(CC) -c $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) krtmp.c
-       mv krtmp.o $@
+       cp $< krtmp$$.c && \
+       $(CC) -c $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) krtmp$$.c && \
+       mv krtmp$$.o $@
 
 .c.krc:
        $(ANSI2KNR) $< > $@
index c1c25b1..aeb40bf 100644 (file)
@@ -3,9 +3,9 @@
        $(CC) -c $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) $<
 
 .krc.kro:
-       cp $< krtmp.c
-       $(CC) -c $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) krtmp.c
-       mv krtmp.o $@
+       cp $< krtmp$$.c && \
+       $(CC) -c $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) krtmp$$.c && \
+       mv krtmp$$.o $@
 
 .c.krc:
        $(ANSI2KNR) $< > $@