summaryrefslogtreecommitdiff
path: root/libinotifytools/src/Makefile.am
blob: a8873e13c60cfb98056bd5b005d50f9953a3227c (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
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

if DOXYGEN_ENABLE

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

shareddocdir = $(datadir)/doc
docdir = $(shareddocdir)/libinotifytools/html
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
	touch -d '2 days ago' $(distdir)/*