2009-06-22 23:12:53 +00:00
|
|
|
# -*- Makefile -*-
|
|
|
|
|
2012-05-01 18:32:57 +00:00
|
|
|
.PHONY: gendoc api_ref asciidoc
|
2009-06-22 23:12:53 +00:00
|
|
|
|
2017-02-27 23:03:16 +00:00
|
|
|
ASCIIDOCOPTS = \
|
|
|
|
-a pygments \
|
|
|
|
-a language=c \
|
|
|
|
-a icons \
|
|
|
|
-a toc2 \
|
|
|
|
-a numbered \
|
|
|
|
-a imagesdir="./images/" \
|
|
|
|
-a iconsdir="./images/icons" \
|
|
|
|
-a stylesdir="$(abs_srcdir)/stylesheets/"
|
2011-03-31 12:25:57 +00:00
|
|
|
|
2011-08-11 13:43:34 +00:00
|
|
|
EXTRA_DIST = \
|
|
|
|
core.txt \
|
2012-10-19 14:16:06 +00:00
|
|
|
core.html \
|
2011-08-11 13:43:34 +00:00
|
|
|
route.txt \
|
2012-10-19 14:16:06 +00:00
|
|
|
route.html \
|
2011-08-11 13:43:34 +00:00
|
|
|
index.txt \
|
2012-10-19 14:16:06 +00:00
|
|
|
index.html \
|
2011-08-11 13:43:34 +00:00
|
|
|
libnl.css \
|
2012-10-19 14:16:06 +00:00
|
|
|
stylesheets \
|
|
|
|
images \
|
|
|
|
api
|
|
|
|
|
|
|
|
dist-hook:
|
|
|
|
rm -f $(distdir)/aclocal.m4
|
|
|
|
rm -f $(distdir)/configure
|
|
|
|
rm -f $(distdir)/configure.in
|
|
|
|
rm -rf $(distdir)/m4
|
|
|
|
rm -f $(distdir)/README
|
|
|
|
rm -f $(distdir)/missing
|
|
|
|
rm -f $(distdir)/Doxyfile.in
|
|
|
|
rm -f $(distdir)/Makefile.am
|
|
|
|
rm -f $(distdir)/Makefile.in
|
2011-08-11 13:43:34 +00:00
|
|
|
|
2012-05-10 10:03:59 +00:00
|
|
|
link_doc:
|
2012-05-09 08:06:24 +00:00
|
|
|
if LINK_DOC
|
2012-05-10 10:03:59 +00:00
|
|
|
./gen-tags.sh > libnl.dict
|
|
|
|
else
|
|
|
|
@echo "Warning: Linking to API reference is disabled, check configure output"
|
|
|
|
endif
|
2017-02-27 23:03:16 +00:00
|
|
|
|
2012-05-10 10:03:59 +00:00
|
|
|
|
|
|
|
%.html: %.txt link_doc
|
2015-07-07 05:33:23 +00:00
|
|
|
if HAVE_ASCIIDOC
|
2011-07-21 14:24:31 +00:00
|
|
|
./resolve-asciidoc-refs.py $< > asciidoc.tmp
|
|
|
|
asciidoc $(ASCIIDOCOPTS) -o $@ asciidoc.tmp
|
2012-05-10 10:03:59 +00:00
|
|
|
if LINK_DOC
|
2011-07-21 14:24:31 +00:00
|
|
|
./doxygen-link.py libnl.dict $@ > asciidoc.tmp
|
|
|
|
mv asciidoc.tmp $@
|
2012-05-09 08:06:24 +00:00
|
|
|
endif
|
2015-07-07 05:33:23 +00:00
|
|
|
else
|
|
|
|
@echo "Warning: Building of asciidoc files is disabled, check autoconf logs"
|
|
|
|
endif
|
2011-07-14 10:48:00 +00:00
|
|
|
|
2011-07-18 06:50:42 +00:00
|
|
|
asciidoc: core.html route.html index.html
|
2011-07-14 10:48:00 +00:00
|
|
|
|
|
|
|
api_ref:
|
2009-06-22 23:12:53 +00:00
|
|
|
doxygen Doxyfile;
|
|
|
|
|
2011-07-14 10:48:00 +00:00
|
|
|
gendoc:
|
2012-05-09 08:06:24 +00:00
|
|
|
if GENERATE_DOC
|
|
|
|
if HAVE_DOXYGEN
|
2011-07-14 10:48:00 +00:00
|
|
|
$(MAKE) api_ref
|
2012-05-09 08:06:24 +00:00
|
|
|
else
|
|
|
|
@echo "Warning: Building of API reference (doxygen) is disabled, check autoconf logs"
|
|
|
|
endif
|
|
|
|
if HAVE_ASCIIDOC
|
2011-07-14 10:48:00 +00:00
|
|
|
$(MAKE) asciidoc
|
2012-05-09 08:06:24 +00:00
|
|
|
else
|
|
|
|
@echo "Warning: Building of asciidoc files is disabled, check autoconf logs"
|
|
|
|
endif
|
|
|
|
else
|
|
|
|
@echo "Warning: Building of documentation disabled by user or autoconf"
|
|
|
|
endif
|
2011-07-14 10:48:00 +00:00
|
|
|
|
|
|
|
clean-local:
|
2017-02-27 23:03:16 +00:00
|
|
|
rm -f api/* libnl.dict *.html
|