forked from nfc-tools/libnfc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.am
50 lines (41 loc) · 1.35 KB
/
Makefile.am
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
43
44
45
46
47
48
49
50
ACLOCAL_AMFLAGS = -I m4
AM_CFLAGS = $(LIBNFC_CFLAGS)
SUBDIRS = libnfc examples include cmake_modules
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = libnfc.pc
EXTRA_DIST = Doxyfile pn53x.conf pn53x.rules CMakeLists.txt config.h.cmake LICENSE
CLEANFILES = Doxygen.log
if DOC_ENABLED
clean-local:
rm -rf doc
doc : Doxyfile
@DOXYGEN@ $(builddir)/Doxyfile
.PHONY: doc
endif
if HAS_INDENT
INDENT_ARGS = --blank-before-sizeof \
--blank-lines-after-commas \
--blank-lines-after-procedures \
--braces-after-func-def-line \
--braces-on-if-line \
--braces-on-struct-decl-line \
--continue-at-parentheses \
--cuddle-else \
--declaration-indentation 8 \
--indent-level 2 \
--line-length 120 \
--no-blank-lines-after-declarations \
--no-tabs \
--preprocessor-indentation 2 \
--procnames-start-lines \
--space-after-cast \
--space-after-procedure-calls
indent:
@[ ! -d $(top_srcdir)/.svn ] || \
[ 0 -eq $$(svn status | grep '\.[hc]$$' | tee /dev/fd/2 | wc -l) ] || \
( echo "These files are localy modified. 'commit' or 'reverse' them, then retry." >&2; false )
@for f in $$(find $(top_srcdir)/libnfc $(top_srcdir)/include $(top_srcdir)/examples -name "*.[hc]"); do \
echo " INDENT $$f"; \
$(INDENT) $(INDENT_ARGS) "$$f" || exit 1; \
done
endif