help-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

silencing 'rm <intermediate-files>'


From: Jens Schweikhardt
Subject: silencing 'rm <intermediate-files>'
Date: Thu, 12 Apr 2001 13:48:50 +0200
User-agent: Mutt/1.2.5i

hello, world\n

now that I can successfully build libraries on Solaris with a gmake
configured with --disable-nsec-timestamps and using the lib(member)
syntax, here's another question I was unable to answer from the
manuals or with a websearch.

I'm using Paul's advanced auto-generation of dependencies, which means
I have object files as targets, depending on their source etc:

libfoo.a: libfoo.a(foo.o)
foo.d foo.o: foo.c foo.h
foo.c foo.h:
# I don't want objects around that I have in the lib anyway.
# This instructs gmake to remove them (which it would do by
# default if there were no foo.o target):
.INTERMEDIATE: foo.o

So far, so good. However, my project consists of 70 libs with lots of
object files per lib, and gmake apparently removes all intermediate
files with a single rm and prints that long long line at the end of my
build. How can I silence that final 'rm <intermediate-files>' *alone*?
Silencing the whole build with gmake -s is not an option. I thought of
writing my own rule how to build archive files and using @rm in the
right place, but that is only a last resort, as I'd like to use gmake's
knowledge on how to build archives.

Regards,

        Jens
-- 
Jens Schweikhardt  http://www.schweikhardt.net/
SIGSIG -- signature too long (core dumped)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]