Thread View: gnu.utils.bug
1 messages
1 total messages
Started by J.T. Conklin
Tue, 07 Apr 1992 09:43
Can GNU make remove *.o when using archives and explict dependencies
Author: J.T. Conklin
Date: Tue, 07 Apr 1992 09:43
Date: Tue, 07 Apr 1992 09:43
19 lines
1043 bytes
1043 bytes
With the following Makefile: >libfoo.a: libfoo.a(tar.o) libfoo.a(foo.o) libfoo.a(bar.o) Gnu Make 3.62 will create libfoo.a from tar.c, foo.c, and bar.c; then remove the *.o files automaticaly. But if I add explicit dependencies to the makefile (so libfoo.a is updated if tar.h, foo.h, or bar.h is changed), >libfoo.a: libfoo.a(tar.o) libfoo.a(foo.o) libfoo.a(bar.o) > >tar.o: tar.c tar.h >foo.o: foo.c foo.h >bar.o: bar.c bar.h Gmake no longer removes the *.o files. Is there a way to get the same behavior as with the implict dependancies, or do I have to add an `rm' to the Makefile to clean up myself?
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads