This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[patch] skip libm texi generation if perl is not installed


simple patch ... dont try and regenerate libm documentation if the build 
machine does not have perl installed
-mike
2006-02-22  Mike Frysinger  <vapier@gentoo.org>

	* manual/Makefile (libm-err.texi): Rebuild only when perl is available.

--- libc/manual/Makefile
+++ libc/manual/Makefile
@@ -104,9 +104,13 @@ dir-add.texi: xtract-typefun.awk $(texis
 libm-err.texi: stamp-libm-err
 stamp-libm-err: libm-err-tab.pl $(wildcard $(foreach dir,$(sysdirs),\
 						     $(dir)/libm-test-ulps))
+ifeq ($(PERL),no)
+	echo "Unable to rebuild libm docs, no perl installed"
+else
 	pwd=`pwd`; \
 	$(PERL) $< $$pwd/.. > libm-err-tmp
 	$(move-if-change) libm-err-tmp libm-err.texi
+endif
 	touch $@
 
 # Generate Texinfo files from the C source for the example programs.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]