allow multiple copies to be installed

Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2024-01-03 17:24:12 -06:00
parent e20dc8e46e
commit 529e1147a1
1 changed files with 7 additions and 4 deletions

11
debian/Makefile vendored
View File

@ -1,6 +1,8 @@
# GITVERSION=$(shell git rev-parse FETCH_HEAD)
GUIVERSION=$(shell cd ../../gui && git describe --tags $(git rev-list --tags --max-count=1) | sed 's/^v//')
VERSION=$(shell git describe --tags $(git rev-list --tags --max-count=1) | sed 's/^v//')
TOOLKITVERSION=$(shell git describe --tags $(git rev-list --tags --max-count=1) | sed 's/^v//')
VERSION=${TOOLKITVERSION}-gui-${GUIVERSION}
BASENAME=go-wit-gui
@ -21,9 +23,9 @@ clean:
rm -rf DEBIAN
extract:
mkdir -p ../files/usr/lib/go-gui
cp ../*.so ../files/usr/lib/go-gui/
cp ../README.md ../files/usr/lib/go-gui/
mkdir -p ../files/usr/lib/go-gui/${GUIVERSION}/${TOOLKITVERSION}
cp ../*.so ../files/usr/lib/go-gui/${GUIVERSION}/${TOOLKITVERSION}/
cp ../README.md ../files/usr/lib/go-gui/${GUIVERSION}/${TOOLKITVERSION}/
# makes the DEBIAN/ directory
DEBIAN:
@ -37,6 +39,7 @@ DEBIAN:
mkdir -p DEBIAN
cp control DEBIAN/
echo Version: ${VERSION} >>DEBIAN/control
echo ToolkitVersion: ${TOOLKITVERSION} >>DEBIAN/control
echo GuiVersion: ${GUIVERSION} >>DEBIAN/control
cp postinst DEBIAN