aboutsummaryrefslogtreecommitdiff
path: root/libinotifytools/src/Makefile.am
blob: b5c7ff2c2a3afaedba40ad3bda374d572f9313d4 (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
SUBDIRS = inotifytools

lib_LTLIBRARIES = libinotifytools.la
libinotifytools_la_SOURCES = inotifytools.c inotifytools_p.h redblack.c redblack.h
libinotifytools_la_LDFLAGS = -version-info 4:1:4

check_PROGRAMS = test
test_SOURCES = test.c
test_LDADD = libinotifytools.la

TESTS = test

EXTRA_DIST = example.c Doxyfile

nobase_include_HEADERS = inotifytools/inotifytools.h inotifytools/inotify-nosys.h inotifytools/inotify.h

AM_CFLAGS = -std=c99 -Wall -Werror

if DOXYGEN_ENABLE

doc/html/*: inotifytools.c Doxyfile
	$(DOXYGEN)

shareddocdir = $(datadir)/doc
doc_DATA = doc/html/*

clean-local:
	rm -rf 'doc'

uninstall-hook:
	rm -rf '$(DESTDIR)/$(shareddocdir)/libinotifytools'

endif DOXYGEN_ENABLE

dist-hook:
	rm $(distdir)/inotifytools/inotify.h