| 1 |
# SPDX-License-Identifier: GPL-2.0-or-later |
| 2 |
# SPDX-FileCopyrightText: 2017-2021 Bartosz Golaszewski <[email protected]> |
| 3 |
# SPDX-FileCopyrightText: 2022 Bartosz Golaszewski <[email protected]> |
| 4 |
|
| 5 |
ACLOCAL_AMFLAGS = -I m4 |
| 6 |
AUTOMAKE_OPTIONS = foreign |
| 7 |
SUBDIRS = include lib contrib |
| 8 |
|
| 9 |
EXTRA_DIST = \ |
| 10 |
LICENSES/GPL-2.0-or-later.txt \ |
| 11 |
LICENSES/Apache-2.0.txt \ |
| 12 |
LICENSES/LGPL-2.1-or-later.txt \ |
| 13 |
LICENSES/CC-BY-SA-4.0.txt \ |
| 14 |
LICENSES/CC0-1.0.txt \ |
| 15 |
LICENSES/GPL-2.0-only.txt \ |
| 16 |
LICENSES/Linux-syscall-note.txt \ |
| 17 |
LICENSES/BSD-3-Clause.txt |
| 18 |
|
| 19 |
if WITH_EXAMPLES |
| 20 |
|
| 21 |
SUBDIRS += examples |
| 22 |
|
| 23 |
endif |
| 24 |
|
| 25 |
if WITH_TOOLS |
| 26 |
|
| 27 |
SUBDIRS += tools |
| 28 |
|
| 29 |
endif |
| 30 |
|
| 31 |
if WITH_TESTS |
| 32 |
|
| 33 |
SUBDIRS += tests |
| 34 |
|
| 35 |
endif |
| 36 |
|
| 37 |
# Build bindings after core tests. When building tests for bindings, we need |
| 38 |
# libgpiosim to be already present. |
| 39 |
SUBDIRS += bindings |
| 40 |
|
| 41 |
if WITH_DBUS |
| 42 |
|
| 43 |
SUBDIRS += dbus |
| 44 |
|
| 45 |
endif |
| 46 |
|
| 47 |
if WITH_MANPAGES |
| 48 |
|
| 49 |
SUBDIRS += man |
| 50 |
|
| 51 |
endif |
| 52 |
|
| 53 |
if WITH_DOCS |
| 54 |
|
| 55 |
SUBDIRS += docs |
| 56 |
|
| 57 |
docs: |
| 58 |
$(MAKE) -C docs docs |
| 59 |
|
| 60 |
.PHONY: docs |
| 61 |
|
| 62 |
endif |