[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Quietly and eagerly deleting intermediate files
From: |
Kristian |
Subject: |
Re: Quietly and eagerly deleting intermediate files |
Date: |
Mon, 9 Jan 2017 23:08:09 +0100 |
According to your .SILENT problem: Do you know the @ functionality?
See here: https://www.gnu.org/software/make/manual/html_node/Echoing.html
You can use it before a command so the command will not be printed.
Here an example of a Makefile
hello: hello1.c
gcc hello1.c -o hello
hello_d: hello1.c
@gcc hello1.c -o hello_d -g
"make hello_d" will not give you any output, but "make hello" will.
2017-01-09 20:39 GMT+01:00 Jed Brown <address@hidden>:
> I'm using make to run a test suite and thus have a bunch of intermediate
> test executables. Those take up a lot of space when using static
> linking (there are many ways around this, but I'm trying to integrate
> with an existing system at this time) and thus blow some users' quotas
> if they all exist at once. Make will delete them automatically when I
> mark them .INTERMEDIATE, but it only removes intermediates as the final
> step, not as soon as the intermediate is no longer needed. Is there a
> way, short of recursive make, to eagerly delete the intermediates?
>
> Also, when there are many intermediates, the output is very loud. Is
> there a way to silence it without silencing everything? My experiments
> with .SILENT have been unsuccessful.
>
> _______________________________________________
> Help-make mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/help-make
>