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:
Arun Raghavan 2015-03-23 23:34:43 +05:30
parent 762cca5519
commit 2505798a84
2 changed files with 10 additions and 6 deletions

View File

@ -18,20 +18,22 @@
EXTRA_DIST = \ EXTRA_DIST = \
m4/ChangeLog \ m4/ChangeLog \
bootstrap.sh \ bootstrap.sh \
README LICENSE \ LICENSE \
intltool-merge.in \ intltool-merge.in \
intltool-update.in \ intltool-update.in \
intltool-extract.in intltool-extract.in
SUBDIRS=src doc po SUBDIRS=src doc po
if USE_LYNX
EXTRA_DIST += README
MAINTAINERCLEANFILES = README MAINTAINERCLEANFILES = README
noinst_DATA = README noinst_DATA = README
README: README:
rm -f README
$(MAKE) -C doc README $(MAKE) -C doc README
cd $(srcdir) && ln -s doc/README README ln -sf doc/README $(builddir)
endif
homepage: all dist homepage: all dist
test -d $$HOME/homepage/private test -d $$HOME/homepage/private

View File

@ -17,16 +17,18 @@
# <http://www.gnu.org/licenses/>. # <http://www.gnu.org/licenses/>.
dist_html_DATA = README.html style.css dist_html_DATA = README.html style.css
dist_doc_DATA = README
EXTRA_DIST = README.html.in EXTRA_DIST = README.html.in
MAINTAINERCLEANFILES = README README.html MAINTAINERCLEANFILES = README.html
CLEANFILES = CLEANFILES =
if USE_LYNX if USE_LYNX
dist_doc_DATA = README
README: README.html README: README.html
lynx --dump $^ | sed 's,file://localhost/.*/doc/README.html,README,' > $@ lynx --dump $^ | sed 's,file://localhost/.*/doc/README.html,README,' > $@
MAINTAINERCLEANFILES += README
CLEANFILES += README CLEANFILES += README
endif endif