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