diff --git a/autogen.sh b/autogen.sh index 33490b31..d65e65d6 100755 --- a/autogen.sh +++ b/autogen.sh @@ -1,7 +1,7 @@ #!/bin/sh # Generate the documentation about compiling Window Maker -./script/generate-txt-from-texi.sh doc/build/Translations.texi > README.i18n +./script/generate-txt-from-texi.sh "doc/build/Translations.texi" -o "README.i18n" # Change date of the files to the past so they will be regenerated by 'make' touch -d '2000-01-01' README.i18n diff --git a/doc/build/Makefile.am b/doc/build/Makefile.am index 161da6ec..93e3e8be 100644 --- a/doc/build/Makefile.am +++ b/doc/build/Makefile.am @@ -7,7 +7,7 @@ EXTRA_DIST = Readme \ all-local: $(top_srcdir)/README.i18n $(top_srcdir)/README.i18n: $(srcdir)/Translations.texi $(top_srcdir)/script/generate-txt-from-texi.sh - $(AM_V_GEN)if test -w "$(top_srcdir)/README.i18n" ; then \ + $(AM_V_GEN)if test ! -e "$(top_srcdir)/README.i18n" -o -w "$(top_srcdir)/README.i18n" ; then \ $(top_srcdir)/script/generate-txt-from-texi.sh \ $(srcdir)/Translations.texi -o $(top_srcdir)/README.i18n \ -Dversion="$(PACKAGE_VERSION)" -e "$(PACKAGE_BUGREPORT)" ; \