mirror of
https://git.kernel.org/pub/scm/libs/libgpiod/libgpiod.git
synced 2026-10-25 12:39:18 +03:00
GPIOD_VERSION_STRING environment variable is no longer used by setup.py. It's been replaced by reading the version from the variable defined in version.py. Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
34 lines
613 B
Makefile
34 lines
613 B
Makefile
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
# SPDX-FileCopyrightText: 2022 Bartosz Golaszewski <brgl@bgdev.pl>
|
|
|
|
EXTRA_DIST = setup.py
|
|
|
|
if WITH_TESTS
|
|
|
|
BUILD_TESTS = 1
|
|
|
|
endif
|
|
|
|
all-local:
|
|
GPIOD_WITH_TESTS=$(BUILD_TESTS) \
|
|
$(PYTHON) $(srcdir)/setup.py build_ext --inplace \
|
|
--include-dirs=$(top_srcdir)/include/:$(top_srcdir)/tests/gpiosim/ \
|
|
--library-dirs=$(top_builddir)/lib/.libs/:$(top_srcdir)/tests/gpiosim/.libs/
|
|
|
|
install-exec-local:
|
|
$(PYTHON) $(srcdir)/setup.py install --prefix=$(DESTDIR)$(prefix)
|
|
|
|
SUBDIRS = gpiod
|
|
|
|
if WITH_TESTS
|
|
|
|
SUBDIRS += tests
|
|
|
|
endif
|
|
|
|
if WITH_EXAMPLES
|
|
|
|
SUBDIRS += examples
|
|
|
|
endif
|