Re: Autoconf uninstall target incompletely undoing installation
Warren Young <[email protected]> Mon, 25 Aug 2008 10:06:43 -0600
| Newsgroups | gmane.comp.sysutils.bakefile.devel |
|---|---|
| Message-ID | <[email protected]> |
Vaclav Slavik wrote:
>
> you don't want "make uninstall" to delete,
> say, /usr/local/bin.
True, but that's easily dealt with:
-rmdir $(DIRECTORY_I_MAY_OR_MAY_NOT_HAVE_CREATED)
This would delete the bin directory if the last thing to live in it got
removed, but that should be harmless. It just means anything installing
into it needs to be able to recreate it when necessary.
Ignoring that rare condition, it's equal to "don't remove it unless I
created it".
You're not going to get better behavior without creating an install log
so you can consult it on uninstall to see exactly what was created.
> Where did you have the <modify-target> block?
<dll stuff>
<!-- stuff here -->
<if cond="FORMAT=='autoconf'">
<!-- stuff here -->
<modify-target target="uninstall">
<!-- <command>s here -->
</modify-target>
</if>
</dll>
I don't think that's too surprising, or even wrong. But then after the
<dll> tag:
<data-files>
<files>lib/*.h</files>
<install-to>$(HEADER_DIR)</install-to>
</data-files>
If I move the modify-target after data-files block, it does work. Thanks!
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/