what files should be removed for purging a felix install

1 view
Skip to first unread message

rraghu...@gmail.com

unread,
Nov 2, 2022, 6:03:41 AM11/2/22
to felix
how do i remove files created with sudo make install? is there a list i can consult?

John Skaller

unread,
Nov 2, 2022, 12:57:42 PM11/2/22
to felix


> On 2 Nov 2022, at 21:03, rraghu...@gmail.com <rraghu...@gmail.com> wrote:
>
> how do i remove files created with sudo make install? is there a list i can consult?

Note: the new mailing list is fel...@googlegroups.com. This one works but I cannot
manage it due to forgetting password :-)



VERSION := $(shell python3 showversion.py)
PREFIX ?= /usr/local
EXECPREFIX ?= ${PREFIX}/bin
INSTALLROOT ?= ${PREFIX}/lib/felix
INSTALLDIR ?= ${INSTALLROOT}/felix-$(VERSION)
FBUILDROOT ?= build
BUILDROOT ?= ${FBUILDROOT}/release
BUILDBIN = ${BUILDROOT}/host/bin


install:
mkdir -p ${PREFIX}'/bin'
mkdir -p ${PREFIX}'/host'
mkdir -p ${PREFIX}'/lib'
mkdir -p ${PREFIX}'/share'
rm -rf ${INSTALLDIR}
${BUILDBIN}/flx_cp ${BUILDROOT}/host '(.*)' ${INSTALLDIR}'/host/$${1}'
${BUILDBIN}/flx_cp ${BUILDROOT}/share '(.*)' ${INSTALLDIR}'/share/$${1}'
${BUILDBIN}/flx_cp ${BUILDROOT} '(VERSION)' ${INSTALLDIR}'/$${1}'
${BUILDBIN}/flx_cp ${BUILDBIN} '(flx)' ${EXECPREFIX}'/$${1}'
${BUILDBIN}/flx_cp speed/ '(.*)' ${INSTALLDIR}'/speed/$${1}'

rm -f ${INSTALLROOT}/felix-latest
ln -s felix-${VERSION} ${INSTALLROOT}/felix-latest
ln -sfn ${INSTALLROOT}/felix-latest/host/* ${PREFIX}/host/
ln -sfn ${INSTALLROOT}/felix-latest/share/* ${PREFIX}/share/


So roughly everything goes in /usr/lib/felix/felix-version/*

EXCEPT executables. They go in /usr/local/bin.

I think ALL the executables have the name flx_* so this should remove everything
which is installed:

rm -rf /usr/local/felix
rm /usr/local/bin/flx_*

possibly prefixed by sudo.




John Skaller
ska...@internode.on.net





Reply all
Reply to author
Forward
0 new messages