RTimothyEdwards / magic

Magic VLSI Layout Tool
Other
498 stars 103 forks source link

Instructions on how uninstall magic #315

Open icaro-meneses opened 4 months ago

icaro-meneses commented 4 months ago

I recently installed magic, but I ended up making the mistake of using the -j4 option in the compilation (I ended up reading later in the documentation about why I couldn't use it), so the final installation failed to copy the essential minimum.tech file.

So I prefer to do a clean install: uninstall and then install again. How can I perform the uninstall?

There is no 'uninstall' rule in the Makefile.

RTimothyEdwards commented 4 months ago

You're right; it really ought to have a "make uninstall" option. Anyway, installed files end up only in two places: If you used the default prefix, then it's /usr/local/lib/magic, and the executable is installed as /usr/local/bin/magic. If you rebuild/reinstall, then the executable is going to get overwritten, so you really only need to delete everything in the path /usr/local/lib/magic/.

icaro-meneses commented 4 months ago

OK! Knowing this, it is simple to clean the installed files and it is also possible to create an uninstall Makefile rule. Thanks!