Ok, if you think this is usefull, and you can implement it in a reliable way, go ahead. Please be aware, that we want to deprecate the Makefile in the future.
Personally I think the uninstall target is just a relict form the old days and lost it's usefulness on modern system.
-- Thomas
On Thu, 2022-11-10 at 15:38 +0400, Joursoir wrote:
On Tue, 08 Nov 2022 10:33:50 +0000 Thomas Heijligen src@posteo.de wrote:
Do you know an other project providing a uninstall script? I know none.
Standard unix password manager (pass), MidnightCommander, Dovecot, claws and most of the GNU program. And these are just the programs that first came to my mind.
The install target is for copying all necessary files into the correct place in the filesystem hierarchy. After that the user, or a other program is responsible.
The uninstall target is for deleting all program's files from the correct place. Otherwise, a user will have to go through the Makefile, find out the values of variables that are used in install target and delete it by hand. A user will obviously not be grateful to us for this.
On Tue, 08 Nov 2022 10:47:32 +0000 Felix Singer felixsinger@posteo.net wrote:
However, an uninstall target doesn't make sense since there are way too many unknown variables and what not.
As far as we introduced install target, we take this responsibility and know the paths where all the necessary files are installed.
-- Joursoir
On Tue, 08 Nov 2022 10:33:50 +0000 Thomas Heijligen src@posteo.de wrote:
Do you know an other project providing a uninstall script? I know none. The install target is for copying all necessary files into the correct place in the filesystem hierarchy. After that the user, or a other program is responsible.
-- Thomas
On November 8, 2022 10:13:34 AM GMT+01:00, Joursoir chat@joursoir.net wrote:
Hello Thomas,
Of course, `uninstall`/`install` options should be performed by the package manager, but not limited to this. Otherwise, why do we need `install` option in the Makefile?
It's just strange, that a person can download flashrom sources, use `install` options and then find out that there's no `uninstall` option.
-- Joursoir
On Mon, 07 Nov 2022 14:20:34 +0000 Thomas Heijligen src@posteo.de wrote:
Hi Joursoir,
the 'uninstall' should be performed by the package manager or 'rm'. Also the Makefile or other build scripts are not part of the flashrom installation.
To remove build artifacs you can run 'make clean' for Make or 'rm -r <build_dir> on Meson.
-- Thomas
On Mon, 2022-11-07 at 13:59 +0400, Joursoir wrote:
Hello everyone,
I wonder why there is no 'uninstall' option in the flashrom's Makefile? Is it just an oversight? Or do we have a reason for that?
The same question is related to the meson script.
-- Joursoir _______________________________________________ flashrom mailing list -- flashrom@flashrom.org To unsubscribe send an email to flashrom-leave@flashrom.org
flashrom mailing list -- flashrom@flashrom.org To unsubscribe send an email to flashrom-leave@flashrom.org
flashrom mailing list -- flashrom@flashrom.org To unsubscribe send an email to flashrom-leave@flashrom.org
flashrom mailing list -- flashrom@flashrom.org To unsubscribe send an email to flashrom-leave@flashrom.org