aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile.am
blob: d3f57b2d13b6209b11c424fcda0d238d2cb5b481 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# SPDX-License-Identifier: LGPL-2.1-or-later

#
# This file is part of libgpiod.
#
# Copyright (C) 2017-2019 Bartosz Golaszewski <bartekgola@gmail.com>
#

ACLOCAL_AMFLAGS = -I m4
AUTOMAKE_OPTIONS = foreign
SUBDIRS = include lib

if WITH_TOOLS

SUBDIRS += tools man

endif

if WITH_TESTS

SUBDIRS += tests

endif

# Build bindings after core tests. When building tests for bindings, we need
# libgpiomockup to be already present.
SUBDIRS += bindings

if HAS_DOXYGEN

doc:
	@(cat Doxyfile; \
		echo PROJECT_NUMBER = $(VERSION_STR); \
		echo INPUT += bindings/cxx/gpiod.hpp) | doxygen -
.PHONY: doc

clean-local:
	rm -rf doc

EXTRA_DIST = Doxyfile

endif