Build manual page.
authorrjones <rjones>
Thu, 19 Mar 2009 15:09:19 +0000 (15:09 +0000)
committerrjones <rjones>
Thu, 19 Mar 2009 15:09:19 +0000 (15:09 +0000)
.cvsignore
Makefile.am
autogen.sh [new file with mode: 0755]
configure.ac

index 68734ff..1d61e52 100644 (file)
@@ -1,2 +1,13 @@
+Makefile.in
+Makefile
+aclocal.m4
+autom4te.cache
+config.h.in
+config.h
+config.log
+config.status
+configure
 febootstrap
 febootstrap.8
+febootstrap.txt
+stamp-h1
index 81c874a..24328b3 100644 (file)
 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 #
 # Written by Richard W.M. Jones <rjones@redhat.com>
+
+bin_SCRIPTS = febootstrap
+
+febootstrap: febootstrap.sh
+       rm -f $@
+       cp $< $@-t
+       chmod 0755 $@-t
+       mv $@-t $@
+
+man_MANS = febootstrap.8
+
+if HAVE_PERLDOC
+febootstrap.8: febootstrap.pod
+       pod2man \
+         --section 8 \
+         -c "Virtualization Support" \
+         --release "$(PACKAGE_NAME)-$(PACKAGE_VERSION)" \
+         $< > $@
+
+febootstrap.txt: febootstrap.pod
+       pod2text $< > $@
+endif
+
+EXTRA_DIST = febootstrap.8 febootstrap.txt
diff --git a/autogen.sh b/autogen.sh
new file mode 100755 (executable)
index 0000000..32f085b
--- /dev/null
@@ -0,0 +1,5 @@
+#!/bin/sh -
+
+export AUTOMAKE='automake --foreign --add-missing'
+autoreconf
+./configure "$@"
index 169617c..9df1cc4 100644 (file)
@@ -27,7 +27,7 @@ AC_CHECK_PROG(PERLDOC,[perldoc],[perldoc],[no])
 if test "x$PERLDOC" = "xno" ; then
   AC_MSG_WARN([perldoc not found - install perl to make man pages])
 fi
-AM_CONDITIONAL(PERLDOC,[test "$perldoc" != "no"])
+AM_CONDITIONAL(HAVE_PERLDOC,[test "$perldoc" != "no"])
 
 AC_CHECK_PROG(FAKEROOT,[fakeroot],[fakeroot],[no])
 if test "x$FAKEROOT" = "xno" ; then