Commit ac368edf authored by Pekka Pessi's avatar Pekka Pessi
Browse files

Doxyfiles: generating Doxyfiles using configure

Now allow 'make doxygen' also if srcdir !

darcs-hash:20070419193025-88462-1ab6f6f26ac5725c5f379de48ea6cff5be680e27.gz
parent b3fb75f3
......@@ -249,31 +249,51 @@ packages/sofia-sip-ua.pc
packages/sofia-sip-ua-glib.pc
libsofia-sip-ua/Makefile
libsofia-sip-ua/bnf/Makefile
libsofia-sip-ua/bnf/Doxyfile
libsofia-sip-ua/docs/Makefile
libsofia-sip-ua/docs/Doxyfile
libsofia-sip-ua/docs/Doxyfile.version
libsofia-sip-ua/docs/sofia-footer.html
libsofia-sip-ua/features/Doxyfile
libsofia-sip-ua/features/Makefile
libsofia-sip-ua/http/Doxyfile
libsofia-sip-ua/http/Makefile
libsofia-sip-ua/ipt/Doxyfile
libsofia-sip-ua/ipt/Makefile
libsofia-sip-ua/iptsec/Doxyfile
libsofia-sip-ua/iptsec/Makefile
libsofia-sip-ua/msg/Doxyfile
libsofia-sip-ua/msg/Makefile
libsofia-sip-ua/nea/Doxyfile
libsofia-sip-ua/nea/Makefile
libsofia-sip-ua/nta/Doxyfile
libsofia-sip-ua/nta/Makefile
libsofia-sip-ua/nth/Doxyfile
libsofia-sip-ua/nth/Makefile
libsofia-sip-ua/nua/Doxyfile
libsofia-sip-ua/nua/Makefile
libsofia-sip-ua/sdp/Doxyfile
libsofia-sip-ua/sdp/Makefile
libsofia-sip-ua/sip/Doxyfile
libsofia-sip-ua/sip/Makefile
libsofia-sip-ua/soa/Doxyfile
libsofia-sip-ua/soa/Makefile
libsofia-sip-ua/sresolv/Doxyfile
libsofia-sip-ua/sresolv/Makefile
libsofia-sip-ua/stun/Doxyfile
libsofia-sip-ua/stun/Makefile
libsofia-sip-ua/su/Doxyfile
libsofia-sip-ua/su/Makefile
libsofia-sip-ua/tport/Doxyfile
libsofia-sip-ua/tport/Makefile
libsofia-sip-ua/url/Doxyfile
libsofia-sip-ua/url/Makefile
libsofia-sip-ua/features/sofia-sip/sofia_features.h
libsofia-sip-ua-glib/Makefile
libsofia-sip-ua-glib/su-glib/Makefile
libsofia-sip-ua-glib/su-glib/Doxyfile
utils/Makefile
utils/Doxyfile.build
utils/Doxyfile
win32/Makefile
win32/config.h
])
......
......@@ -32,8 +32,7 @@ EXTRA_DIST = docs/Doxyfile.aliases \
docs/Doxyfile.version
doxygen: built-sources
@cd ${srcdir} ;\
mkdir -p docs docs/html &&\
@mkdir -p docs docs/html &&\
for d in $(DIST_SUBDIRS) $(DIST_SUBDIRS); do \
test -r $$d/Doxyfile \
&& pushd $$d > /dev/null \
......@@ -41,7 +40,7 @@ doxygen: built-sources
&& ${DOXYGEN} \
&& popd > /dev/null ; \
done
cd ${srcdir}/docs/html && ../../${top_srcdir}/libsofia-sip-ua/docs/hide_emails.sh
${top_srcdir}/libsofia-sip-ua/docs/hide_emails.sh docs/html
include $(top_srcdir)/rules/recursive.am
......
......@@ -2,8 +2,9 @@ PROJECT_NAME = "sofia-sip/su-glib"
OUTPUT_DIRECTORY = ../docs/html/su-glib
INPUT = su_glib.docs . sofia-sip
INPUT = @srcdir@/su_glib.docs @srcdir@ . @srcdir@/sofia-sip
@INCLUDE_PATH = @srcdir@ .
@INCLUDE = ../docs/Doxyfile.conf
GENERATE_TAGFILE = ../docs/su_glib.doxytags
......
......@@ -59,7 +59,6 @@ include $(top_srcdir)/rules/recursive.am
doxygen: built-sources
@echo Generating empty doxytags
cd ${srcdir}; \
mkdir -p docs/html ; \
for d in $(DIST_SUBDIRS); do \
test -r $$d/Doxyfile || continue ; \
......@@ -71,20 +70,18 @@ doxygen: built-sources
mv -f docs/$$d.doxytags.tmp docs/$$d.doxytags ; \
fi ; \
done
@cd ${srcdir} ;\
for d in $(DIST_SUBDIRS); do \
test -r $$d/Doxyfile \
&& pushd $$d > /dev/null \
&& echo running ${DOXYGEN} first time in $$d \
&& ${DOXYGEN} 2>&1 \
| egrep -v -i -e 'Warning: (unsupported (xml/)?html tag|unable to resolve reference|could not be resolved)' \
| egrep -v -i -e 'Warning: (unsupported (xml/)?html tag|unable to resolve reference|explicit link.*could not be resolved)' \
; popd > /dev/null ; \
test -r docs/$$d.doxytags && \
sed '2,10s!<name>index</name>!<name>'$$d'_index</name>!' \
docs/$$d.doxytags > docs/$$d.doxytags.tmp && \
mv -f docs/$$d.doxytags.tmp docs/$$d.doxytags ; \
done
@cd ${srcdir} ;\
for d in $(DIST_SUBDIRS); do \
test -r $$d/Doxyfile \
&& pushd $$d > /dev/null \
......@@ -97,6 +94,6 @@ doxygen: built-sources
docs/$$d.doxytags > docs/$$d.doxytags.tmp && \
mv -f docs/$$d.doxytags.tmp docs/$$d.doxytags ; \
done
cd ${srcdir}/docs/html && ../hide_emails.sh
${srcdir}/docs/hide_emails.sh docs/html
.PHONY: built-sources built-sources-am empty-doxytags doxygen
PROJECT_NAME = "bnf"
OUTPUT_DIRECTORY = ../docs/html/bnf
INPUT = bnf.docs sofia-sip .
INPUT = @srcdir@/bnf.docs @srcdir@/sofia-sip @srcdir@ .
@INCLUDE_PATH = . @srcdir@
@INCLUDE = ../docs/Doxyfile.conf
TAGFILES += ../docs/su.doxytags=../su
......
......@@ -33,7 +33,7 @@ torture_bnf_LDFLAGS = -static
# ----------------------------------------------------------------------
# Install and distribution rules
EXTRA_DIST = Doxyfile bnf.docs
EXTRA_DIST = bnf.docs
# ----------------------------------------------------------------------
# Tests
......
......@@ -62,5 +62,3 @@ FILE_PATTERNS = *.h *.c
EXCLUDE_PATTERNS = acconfig.h config.h confdefs.h \
test*.h test*.c torture*.c *test.c *torture.c \
*_tag_dll.c *_tag_ref.c
IMAGE_PATH = ../../libsofia-sip-ua/docs/pictures
PROJECT_NAME = "libsofia-sip-ua"
OUTPUT_DIRECTORY = ../docs/html
INPUT = mainpage.docs docguide.docs conformance.docs
INPUT = @srcdir@/mainpage.docs @srcdir@/docguide.docs @srcdir@/conformance.docs
# release.docs
@INCLUDE_PATH = . @srcdir@
@INCLUDE = ../docs/Doxyfile.conf
GENERATE_TAGFILE = docs.doxytags
......@@ -27,4 +28,4 @@ TAGFILES += nea.doxytags=nea
TAGFILES += nua.doxytags=nua
TAGFILES += features.doxytags=features
EXAMPLE_PATH = ../sip
EXAMPLE_PATH = @srcdir@/../sip
PROJECT_NUMBER = @VERSION@
IMAGE_PATH = @top_srcdir@/libsofia-sip-ua/docs/pictures
EXTRA_DIST = Doxyfile Doxyfile.aliases Doxyfile.conf \
EXTRA_DIST = Doxyfile.aliases Doxyfile.conf \
docguide.docs \
mainpage.docs \
conformance.docs \
Doxyfile.version.in \
sofia-footer.html.in \
hide_emails.sh \
ChangeLog \
pictures/SIP_basic_incoming_operation.eps \
......
......@@ -29,9 +29,9 @@
#
# --------------------------------------------------------------------
find . -name '*.html' -print | while read i ; do
(
echo "Hiding email addresses in ${i}."
sed -r -i 's/([:>;][a-z][-a-z.]*)(@[a-z][a-z]*)\.[a-z][a-z]*(["<\&])/\1\2-email.address.hidden\3/gi' $i
)
done
echo "Hiding email addresses in ${1:-.}"
find ${1:-.} -name '*.html' -print0 |
xargs -0 \
sed -r -i 's/([:>;][a-z][-a-z.]*)(@[a-z][a-z]*)\.[a-z][a-z]*(["<\&])/\1\2-email.address.hidden\3/gi'
PROJECT_NAME = "features"
OUTPUT_DIRECTORY = ../docs/html/features
INPUT = features.docs sofia-sip .
INPUT = @srcdir@/features.docs @srcdir@/sofia-sip sofia-sip @srcdir@ .
@INCLUDE_PATH = . @srcdir@
@INCLUDE = ../docs/Doxyfile.conf
TAGFILES += ../docs/docs.doxytags=..
......
......@@ -26,7 +26,7 @@ libfeatures_la_SOURCES = features.c
# ----------------------------------------------------------------------
# Install and distribution rules
EXTRA_DIST = Doxyfile features.docs
EXTRA_DIST = features.docs
# ----------------------------------------------------------------------
# Sofia specific rules
......
PROJECT_NAME = "http"
OUTPUT_DIRECTORY = ../docs/html/http
INPUT = http.docs sofia-sip .
INPUT = @srcdir@/http.docs @srcdir@/sofia-sip sofia-sip @srcdir@ .
@INCLUDE_PATH = . @srcdir@
@INCLUDE = ../docs/Doxyfile.conf
TAGFILES += \
......
......@@ -56,7 +56,7 @@ test_http_LDFLAGS = -static
# ----------------------------------------------------------------------
# Install and distribution rules
EXTRA_DIST = Doxyfile http.docs \
EXTRA_DIST = http.docs \
sofia-sip/http_protos.h.in \
sofia-sip/http_tag.h.in \
http_parser_table.c.in \
......
PROJECT_NAME = "ipt"
OUTPUT_DIRECTORY = ../docs/html/ips
INPUT = ipt.docs sofia-sip .
INPUT = @srcdir@/ipt.docs @srcdir@/sofia-sip @srcdir@ .
@INCLUDE_PATH = . @srcdir@
@INCLUDE = ../docs/Doxyfile.conf
TAGFILES += ../docs/su.doxytags=../su
......
......@@ -46,7 +46,7 @@ torture_base64_LDFLAGS = -static
# ----------------------------------------------------------------------
# Install and distribution rules
EXTRA_DIST += Doxyfile ipt.docs
EXTRA_DIST += ipt.docs
# ----------------------------------------------------------------------
# Sofia specific rules
......
PROJECT_NAME = "iptsec"
OUTPUT_DIRECTORY = ../docs/html/iptsec
INPUT = iptsec.docs sofia-sip .
INPUT = @srcdir@/iptsec.docs @srcdir@/sofia-sip @srcdir@ .
@INCLUDE_PATH = . @srcdir@
@INCLUDE = ../docs/Doxyfile.conf
@INCLUDE = ../sip/sip.doxyaliases
TAGFILES += ../docs/su.doxytags=../su
TAGFILES += ../docs/ipt.doxytags=../ipt
......
......@@ -78,7 +78,7 @@ EXTRA_libiptsec_la_SOURCES = \
# ----------------------------------------------------------------------
# Install and distribution rules
EXTRA_DIST = Doxyfile iptsec.docs testpasswd $(BUILT_SOURCES)
EXTRA_DIST = iptsec.docs testpasswd $(BUILT_SOURCES)
# ----------------------------------------------------------------------
# Sofia specific rules
......
PROJECT_NAME = "msg"
OUTPUT_DIRECTORY = ../docs/html/msg
INPUT = msg.docs . sofia-sip
INPUT = @srcdir@/msg.docs @srcdir@/sofia-sip sofia-sip @srcdir@ .
@INCLUDE_PATH = . @srcdir@
@INCLUDE = ../docs/Doxyfile.conf
@INCLUDE = ../sip/sip.doxyaliases
......@@ -14,4 +15,4 @@ TAGFILES += ../docs/ipt.doxytags=../ipt \
GENERATE_TAGFILE = ../docs/msg.doxytags
IMAGE_PATH += ../sip/images
IMAGE_PATH += @srcdir@/../sip/images
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment