(bi-arity, bi-opcode, bi-opname, bi-unparse, bi-lexer):

Make the rules explicit.  Don't use $^.
(bi-run.o, bi-parser.o, bi-lexer.o): Eliminate $<.
(bc-arity.h, bc-opcode.h, bc-opname.h): Eliminate $< and $@.

From-SVN: r5423
This commit is contained in:
Richard Stallman 1993-09-22 23:50:42 +00:00
parent a8ac57d39a
commit 27f32a5400
1 changed files with 19 additions and 17 deletions

View File

@ -1271,39 +1271,41 @@ bc-optab.o : bc-optab.c bc-typecd.def $(CONFIG_H) $(BYTECODE_H)
bytecode: $(BI_ALL) $(BC_ALL)
bi-arity: bi-arity.o
bi-opcode: bi-opcode.o
bi-opname: bi-opname.o
bi-unparse: bi-unparse.o
bi-lexer: bi-lexer.o
bi-arity bi-opcode bi-opname bi-unparse bi-lexer: $(BI_OBJ)
$(CC) $(ALL_CFLAGS) $(LDFLAGS) -o $@ $^ $(LEXLIB)
bi-arity: bi-arity.o $(BI_OBJ)
$(CC) $(ALL_CFLAGS) $(LDFLAGS) -o $@ bi-arity.o $(BI_OBJ) $(LEXLIB)
bi-opcode: bi-opcode.o $(BI_OBJ)
$(CC) $(ALL_CFLAGS) $(LDFLAGS) -o $@ bi-opcode.o $(BI_OBJ) $(LEXLIB)
bi-opname: bi-opname.o $(BI_OBJ)
$(CC) $(ALL_CFLAGS) $(LDFLAGS) -o $@ bi-opname.o $(BI_OBJ) $(LEXLIB)
bi-unparse: bi-unparse.o $(BI_OBJ)
$(CC) $(ALL_CFLAGS) $(LDFLAGS) -o $@ bi-unparse.o $(BI_OBJ) $(LEXLIB)
bi-lexer: bi-lexer.o $(BI_OBJ)
$(CC) $(ALL_CFLAGS) $(LDFLAGS) -o $@ bi-lexer.o $(BI_OBJ) $(LEXLIB)
bi-run.o: $(srcdir)/bi-run.c $(srcdir)/bi-run.h $(srcdir)/bc-typecd.h bc-opname.h bc-arity.h bc-opcode.h
$(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) -c $<
$(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) -c $(srcdir)/bi-run.c
bi-parser.c: $(srcdir)/bi-parser.y $(srcdir)/bi-parser.h
bi-parser.o: $(srcdir)/bi-parser.c $(srcdir)/bi-defs.h
$(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) -c $<
$(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) -c $(srcdir)/bi-parser.c
bi-lexer.c: $(srcdir)/bi-lexer.l $(srcdir)/bi-parser.h
bi-lexer.o: bi-lexer.c bi-parser.h
$(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) -c $<
$(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) -c bi-lexer.c
bc-arity.h: $(srcdir)/bytecode.def bi-arity
-rm -f $@
bi-arity <$< >$@
-rm -f bc-arity.h
bi-arity < $(srcdir)/bytecode.def > bc-arity.h
bc-opcode.h: $(srcdir)/bytecode.def bi-opcode
-rm -f $@
bi-opcode <$< >$@
-rm -f bc-arity.h
bi-opcode < $(srcdir)/bytecode.def > bc-arity.h
bc-opname.h: $(srcdir)/bytecode.def bi-opname
-rm -f $@
bi-opname <$< >$@
-rm -f bc-arity.h
bi-opname < $(srcdir)/bytecode.def > bc-arity.h
bytecode.mostlyclean:
-rm -f bc-arity.h bc-opcode.h bc-opname.h