build-sys: Fix README building
Fixes for out-of-tree build, as well as making --disable-lynx work correctly. Note that make dist will fail if lynx support is disabled (as it should, since README will then not be available to put in the tarball).
This commit is contained in:
parent
762cca5519
commit
2505798a84
|
@ -18,20 +18,22 @@
|
|||
EXTRA_DIST = \
|
||||
m4/ChangeLog \
|
||||
bootstrap.sh \
|
||||
README LICENSE \
|
||||
LICENSE \
|
||||
intltool-merge.in \
|
||||
intltool-update.in \
|
||||
intltool-extract.in
|
||||
|
||||
SUBDIRS=src doc po
|
||||
|
||||
if USE_LYNX
|
||||
EXTRA_DIST += README
|
||||
MAINTAINERCLEANFILES = README
|
||||
noinst_DATA = README
|
||||
|
||||
README:
|
||||
rm -f README
|
||||
$(MAKE) -C doc README
|
||||
cd $(srcdir) && ln -s doc/README README
|
||||
ln -sf doc/README $(builddir)
|
||||
endif
|
||||
|
||||
homepage: all dist
|
||||
test -d $$HOME/homepage/private
|
||||
|
|
|
@ -17,16 +17,18 @@
|
|||
# <http://www.gnu.org/licenses/>.
|
||||
|
||||
dist_html_DATA = README.html style.css
|
||||
dist_doc_DATA = README
|
||||
EXTRA_DIST = README.html.in
|
||||
|
||||
MAINTAINERCLEANFILES = README README.html
|
||||
MAINTAINERCLEANFILES = README.html
|
||||
CLEANFILES =
|
||||
|
||||
if USE_LYNX
|
||||
dist_doc_DATA = README
|
||||
|
||||
README: README.html
|
||||
lynx --dump $^ | sed 's,file://localhost/.*/doc/README.html,README,' > $@
|
||||
|
||||
MAINTAINERCLEANFILES += README
|
||||
CLEANFILES += README
|
||||
endif
|
||||
|
||||
|
|
Loading…
Reference in New Issue