demo: change strategy for uninstalled detection
commit4739eb85c6e54c82ca6f9cedcde5de8919be15dc
authorNicola Fontana <ntd@entidi.it>
Mon, 19 Apr 2021 19:59:20 +0000 (19 21:59 +0200)
committerNicola Fontana <ntd@entidi.it>
Mon, 19 Apr 2021 19:59:20 +0000 (19 21:59 +0200)
treefedbae1f617b87b6e6ed643c037e3e6948afd16a
parent41252f3da1c10c633231bf9c44f180041b25a624
demo: change strategy for uninstalled detection

Instead of looking for the `-uninstalled` suffix in the program name
(that requires renaming the binaries after the installation), check if
the program is called from BUILDDIR.

This allows to switch from autotools to meson, where the latter does
not handle renaming installed file properly:

    https://github.com/mesonbuild/meson/issues/4019
demo/Makefile.am
demo/adg-demo.c
demo/cpml-demo.c
demo/demo.c