-
Notifications
You must be signed in to change notification settings - Fork 5
/
Makefile.am
60 lines (50 loc) · 1.55 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
51
52
53
54
55
56
57
58
59
60
docdir=$(prefix)/share/doc/@PACKAGE@
man_MANS = uiomux.1
EXTRA_DIST = $(man_MANS) Doxyfile.in
# ensure doxygen-build.stamp is included, or else the documentation will
# not be built or distributed
noinst_DATA = doxygen-build.stamp
if HAVE_DOXYGEN
# doxygen-build.stamp: Doxyfile $(top_srcdir)/include/uiomux/*.h $(top_srcdir)/src/examples/*.c
doxygen-build.stamp: Doxyfile $(top_srcdir)/include/uiomux/*.h
doxygen
touch doxygen-build.stamp
else
doxygen-build.stamp:
echo "*** Warning: Doxygen not found; documentation will not be built."
touch doxygen-build.stamp
endif
dist_docdir = $(distdir)/libuiomux
dist-hook:
if test -d libuiomux; then \
mkdir $(dist_docdir); \
for dir in libuiomux/*; do \
b=`basename $$dir`; \
if test $$b != "CVS"; then \
if test -d $$dir; then \
mkdir $(dist_docdir)/$$b; \
for f in $$dir/*; do \
cp -p $$f $(dist_docdir)/$$b; \
done \
fi \
fi \
done \
fi
install-data-local: doxygen-build.stamp
$(mkinstalldirs) $(DESTDIR)$(docdir)
if test -d libuiomux; then \
for dir in libuiomux/*; do \
if test -d $$dir; then \
b=`basename $$dir`; \
$(mkinstalldirs) $(DESTDIR)$(docdir)/$$b; \
for f in $$dir/*; do \
$(INSTALL_DATA) $$f $(DESTDIR)$(docdir)/$$b; \
done \
fi \
done \
fi
uninstall-local:
rm -rf $(DESTDIR)$(docdir)
clean-local:
if test -d libuiomux; then rm -rf libuiomux; fi
if test -f doxygen-build.stamp; then rm -f doxygen-build.stamp; fi