mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-24 04:13:28 +01:00
Fix up make distcheck and greatly simplify docs dependencies (although it's still a bit odd)
This commit is contained in:
parent
2e80ae895d
commit
2606c8b289
@ -17,10 +17,10 @@ all_mans = $(regular_mans) doc/tor-fw-helper
|
|||||||
|
|
||||||
if USE_ASCIIDOC
|
if USE_ASCIIDOC
|
||||||
if USE_FW_HELPER
|
if USE_FW_HELPER
|
||||||
nodist_man_MANS = $(all_mans:=.1)
|
man_MANS = $(all_mans:=.1)
|
||||||
doc_DATA = $(all_mans:=.html)
|
doc_DATA = $(all_mans:=.html)
|
||||||
else
|
else
|
||||||
nodist_man_MANS = $(regular_mans:=.1)
|
man_MANS = $(regular_mans:=.1)
|
||||||
doc_DATA = $(regular_mans:=.html)
|
doc_DATA = $(regular_mans:=.html)
|
||||||
endif
|
endif
|
||||||
html_in = $(all_mans:=.html.in)
|
html_in = $(all_mans:=.html.in)
|
||||||
@ -30,7 +30,7 @@ else
|
|||||||
html_in =
|
html_in =
|
||||||
man_in =
|
man_in =
|
||||||
txt_in =
|
txt_in =
|
||||||
nodist_man_MANS =
|
man_MANS =
|
||||||
doc_DATA =
|
doc_DATA =
|
||||||
endif
|
endif
|
||||||
|
|
||||||
@ -42,48 +42,26 @@ EXTRA_DIST+= doc/HACKING doc/asciidoc-helper.sh \
|
|||||||
|
|
||||||
docdir = @docdir@
|
docdir = @docdir@
|
||||||
|
|
||||||
asciidoc_product = $(nodist_man_MANS) $(doc_DATA)
|
asciidoc_product = $(man_MANS) $(doc_DATA)
|
||||||
|
|
||||||
# Generate the html documentation from asciidoc, but don't do
|
# Generate the html documentation from asciidoc, but don't do
|
||||||
# machine-specific replacements yet
|
# machine-specific replacements yet
|
||||||
$(html_in) :
|
$(html_in) : $(txt_in)
|
||||||
$(AM_V_GEN)$(top_srcdir)/doc/asciidoc-helper.sh html @ASCIIDOC@ $(top_srcdir)/$@
|
$(AM_V_GEN)$(top_srcdir)/doc/asciidoc-helper.sh html @ASCIIDOC@ $(top_srcdir)/$@
|
||||||
|
|
||||||
doc/tor.html.in : doc/tor.1.txt
|
|
||||||
doc/torify.html.in : doc/torify.1.txt
|
|
||||||
doc/tor-gencert.html.in : doc/tor-gencert.1.txt
|
|
||||||
doc/tor-resolve.html.in : doc/tor-resolve.1.txt
|
|
||||||
doc/tor-fw-helper.html.in : doc/tor-fw-helper.1.txt
|
|
||||||
|
|
||||||
# Generate the manpage from asciidoc, but don't do
|
# Generate the manpage from asciidoc, but don't do
|
||||||
# machine-specific replacements yet
|
# machine-specific replacements yet
|
||||||
$(man_in) :
|
$(man_in) : $(txt_in)
|
||||||
$(AM_V_GEN)$(top_srcdir)/doc/asciidoc-helper.sh man @A2X@ $(top_srcdir)/$@
|
$(AM_V_GEN)$(top_srcdir)/doc/asciidoc-helper.sh man @A2X@ $(top_srcdir)/$@
|
||||||
|
|
||||||
doc/tor.1.in : doc/tor.1.txt
|
|
||||||
doc/torify.1.in : doc/torify.1.txt
|
|
||||||
doc/tor-gencert.1.in : doc/tor-gencert.1.txt
|
|
||||||
doc/tor-resolve.1.in : doc/tor-resolve.1.txt
|
|
||||||
doc/tor-fw-helper.1.in : doc/tor-fw-helper.1.txt
|
|
||||||
|
|
||||||
# use ../config.status to swap all machine-specific magic strings
|
# use ../config.status to swap all machine-specific magic strings
|
||||||
# in the asciidoc with their replacements.
|
# in the asciidoc with their replacements.
|
||||||
$(asciidoc_product) :
|
$(asciidoc_product) : $(txt_in) $(man_in)
|
||||||
|
$(MKDIR_P) $(@D)
|
||||||
$(AM_V_GEN)if test -e $(top_srcdir)/$@.in && ! test -e $@.in ; then \
|
$(AM_V_GEN)if test -e $(top_srcdir)/$@.in && ! test -e $@.in ; then \
|
||||||
cp $(top_srcdir)/$@.in doc/.; \
|
cp $(top_srcdir)/$@.in $@; \
|
||||||
fi
|
fi
|
||||||
$(AM_V_GEN)$(top_srcdir)/config.status --file=$@;
|
$(AM_V_GEN)$(CONFIG_STATUS) --file=$@;
|
||||||
|
|
||||||
doc/tor.1 : doc/tor.1.in
|
|
||||||
doc/torify.1 : doc/torify.1.in
|
|
||||||
doc/tor-gencert.1 : doc/tor-gencert.1.in
|
|
||||||
doc/tor-resolve.1 : doc/tor-resolve.1.in
|
|
||||||
doc/tor-fw-helper.1 : doc/tor-fw-helper.1.in
|
|
||||||
doc/tor.html : doc/tor.html.in
|
|
||||||
doc/torify.html : doc/torify.html.in
|
|
||||||
doc/tor-gencert.html : doc/tor-gencert.html.in
|
|
||||||
doc/tor-resolve.html : doc/tor-resolve.html.in
|
|
||||||
doc/tor-fw-helper.html : doc/tor-fw-helper.html.in
|
|
||||||
|
|
||||||
CLEANFILES+= $(asciidoc_product) config.log
|
CLEANFILES+= $(asciidoc_product) config.log
|
||||||
DISTCLEANFILES+= $(html_in) $(man_in)
|
DISTCLEANFILES+= $(html_in) $(man_in)
|
||||||
|
@ -56,15 +56,17 @@ noinst_HEADERS+= \
|
|||||||
src/common/tortls.h \
|
src/common/tortls.h \
|
||||||
src/common/util.h
|
src/common/util.h
|
||||||
|
|
||||||
|
DISTCLEANFILES+= src/common/common_sha1.i
|
||||||
|
|
||||||
src/common/common_sha1.i: $(libor_SOURCES) $(libor_crypto_a_SOURCES) $(noinst_HEADERS)
|
src/common/common_sha1.i: $(libor_SOURCES) $(libor_crypto_a_SOURCES) $(noinst_HEADERS)
|
||||||
if test "@SHA1SUM@" != none; then \
|
if test "@SHA1SUM@" != none; then \
|
||||||
(cd "$(srcdir)" && "@SHA1SUM@" $(src_common_libor_SOURCES) $(src_common_libor_crypto_a_SOURCES) $(noinst_HEADERS)) | "@SED@" -n 's/^\(.*\)$$/"\1\\n"/p' > src/common/common_sha1.i; \
|
(cd "$(srcdir)" && "@SHA1SUM@" $(src_common_libor_SOURCES) $(src_common_libor_crypto_a_SOURCES) $(noinst_HEADERS)) | "@SED@" -n 's/^\(.*\)$$/"\1\\n"/p' > $@; \
|
||||||
elif test "@OPENSSL@" != none; then \
|
elif test "@OPENSSL@" != none; then \
|
||||||
(cd "$(srcdir)" && "@OPENSSL@" sha1 $(src_common_libor_SOURCES) $(src_Common_libor_crypto_a_SOURCES) $(noinst_HEADERS)) | "@SED@" -n 's/SHA1(\(.*\))= \(.*\)/"\2 \1\\n"/p' > src/common/common_sha1.i; \
|
(cd "$(srcdir)" && "@OPENSSL@" sha1 $(src_common_libor_SOURCES) $(src_Common_libor_crypto_a_SOURCES) $(noinst_HEADERS)) | "@SED@" -n 's/SHA1(\(.*\))= \(.*\)/"\2 \1\\n"/p' > $@; \
|
||||||
else \
|
else \
|
||||||
rm src/common/common_sha1.i; \
|
rm $@; \
|
||||||
touch src/common/common_sha1.i; \
|
touch $@; \
|
||||||
fi
|
fi
|
||||||
|
|
||||||
src/common/util_codedigest.c: src/common/common_sha1.i
|
src/common/util_codedigest.o: src/common/common_sha1.i
|
||||||
src/common/crypto.c: src/common/sha256.c
|
src/common/crypto.c: src/common/sha256.c
|
||||||
|
Loading…
Reference in New Issue
Block a user