RE clean targets,
Hammering out a quick and dirty shell script to remove the generated files
can work if they fit a nice pattern. Another way is to use your version
control system for that, since it ~also knows which files in your tree are
generated. i.e. with something like git clean -xd{n,f}. But as will all
powerful commands for deleting things, be careful with that.
Actually, that gets me thinking... right now tup shares info with git (by
exporting and maintaining .gitignore files); is there something cool tup
could do using knowledge that git has? Maybe use the file hashes that git
already computed for all your source files? Maybe maintain a separate git
repo for you that actually versions all of the ~generated files? Cache
build results when you switch between branches (though that's getting into
ccache territory)
On Sun, Jun 29, 2014 at 12:42 PM, Raphaël Londeix <[email protected]
> wrote:
> Hi Xavier,
>
> 1) Yes, there are several reasons: for example, you updated the gcc in you
>> system and you want a new version of your program compiled against new gcc.
>> Obviously, you don't add the gcc files as inputs, but you want to compile
>> anyway your program. But tup says that nothing has changed....
>>
>
> If some external non-tracked dependency changes, you might want to either
> remove
> completely the build tree or to clean you source tree from built files
> (this can be done easily with git).
>
>
>>
>> 2) How can I do that [building specific target] ?
>>
>
> tup upd path/to/target
>
>
>>
>> Is it possible to create a target like in make:
>>
>> clean:
>> rm *.aux *.log
>>
>> How can I do with tup?
>>
>
> It is not currently possible to specify "removal" as a target, tup only
> creates files. You may find your way with a simple clean script however :)
>
> Please others feel free to correct me,
>
> Cheers,
>
> --
> Raphaël Londeix
> http://hotgloupi.fr
>
> --
> --
> tup-users mailing list
> email: [email protected]
> unsubscribe: [email protected]
> options: http://groups.google.com/group/tup-users?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "tup-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>
--
--
tup-users mailing list
email: [email protected]
unsubscribe: [email protected]
options: http://groups.google.com/group/tup-users?hl=en
---
You received this message because you are subscribed to the Google Groups
"tup-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.