From 9162cd19e9e670996e4c460fcc24594a1370972b Mon Sep 17 00:00:00 2001 From: Sam Hocevar Date: Fri, 10 Nov 2006 14:58:12 +0000 Subject: [PATCH] * Generate the manpage in the make rule, not the configure rule, because at configure time ${datarootdir} depends on ${prefix} which is defined a bit too late in the script. --- configure.ac | 1 - doc/Makefile.am | 4 ++++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 389af7b..728b5ab 100644 --- a/configure.ac +++ b/configure.ac @@ -77,6 +77,5 @@ AC_OUTPUT([ tools/Makefile fonts/Makefile doc/Makefile - doc/toilet.1 ]) diff --git a/doc/Makefile.am b/doc/Makefile.am index 7573e7f..0d36c26 100644 --- a/doc/Makefile.am +++ b/doc/Makefile.am @@ -1,6 +1,10 @@ # $Id: Makefile.am 871 2006-09-25 15:58:33Z sam $ EXTRA_DIST = toilet.1.in +CLEANFILES = toilet.1 man_MANS = toilet.1 +toilet.1: toilet.1.in + sed -e "s,@data""rootdir@,$(datarootdir),g" $(srcdir)/$^ > $@ +