-
Notifications
You must be signed in to change notification settings - Fork 20
/
Makefile.am
75 lines (62 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
AUTOMAKE_OPTIONS = foreign 1.4
build_docs = src/html
static_docs = \
images \
sams2.css \
index.html \
overview.html \
requirements.html \
install.html \
setup.html \
configure.html \
license.html \
faq.html \
commands.html \
notes.html \
tables.html \
sams2_conf.html \
news.html \
squid.html \
synchronization.html \
syncwithad.html \
syncwithldap.html \
templates.html \
delaypools.html \
timerange.html \
webinterface.html \
samsbackup.html \
accesslists.html
docdir = $(datadir)/doc/$(PACKAGE)-$(VERSION)
if BUILD_SRC_DOCS
doc_list = $(static_docs) $(build_docs)
else
doc_list = $(static_docs)
endif
#doc_DATA = $(doc_list)
EXTRA_DIST = $(doc_list)
DISTCLEANFILES=Makefile.in
if BUILD_SRC_DOCS
DISTCLEANFILES += src/Doxyfile src/sams.tag
endif
if BUILD_SRC_DOCS
src/Doxyfile: src/Doxyfile.in
sed -e 's|@INPUT@|$(abs_top_srcdir)/src|g' $(srcdir)/src/Doxyfile.in > src/Doxyfile
src/html: src/Doxyfile
cd src && doxygen Doxyfile
endif
install-data-local: $(doc_list)
$(mkinstalldirs) $(DESTDIR)/$(docdir)
for f in $(doc_list) ; do \
if [ -d "$$f" ] ; then \
$(mkinstalldirs) $(DESTDIR)/$(docdir)/"$$f" ;\
cp -R "$$f" $(DESTDIR)/$(docdir) ;\
else \
cp "$$f" $(DESTDIR)/$(docdir) ;\
fi \
done
uninstall-local:
rm -fr $(DESTDIR)/$(docdir)
if BUILD_SRC_DOCS
distclean-am: clean-am distclean-generic
rm -rf $(build_docs)
endif