Skip to content

build: Add an install target.

orbea requested to merge orbea/freetype-demos:install into master

In gentoo these demos are installed manully in the ebuild:

for ft2demo in ../ft2demos-${PV}/bin/*; do
	./libtool --mode=install $(type -P install) -m 755 "${ft2demo}" \
		"${ED}"/usr/bin || die
done

Suffice to say this will not work with both GNU libtool and slibtool so I added an install target to the Makefile.

To keep the default behavior of not installing the demos it will require setting FT2DEMOS_INSTALL as an make argument to be used. If its not set it will only print:

The freetype demos will not be installed.

Example:

make DESTDIR=/tmp/freetype-install FT2DEMOS=1 FT2DEMOS_INSTALL=1 install

Merge request reports