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]

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


On Wednesday 22 February 2006 19:52, Roland McGrath wrote:
> > On Wednesday 22 February 2006 18:50, Roland McGrath wrote:
> > > You should arrange not to build the manual at all if you can't build it
> > > right.
> >
> > unless i'm mistaken, the manual is built automatically during `make
> > install` and there is no configure option to disable the manual from
> > being built ...
>
> So that's the patch you seem to want to write, not the one you sent.

got it ... i think :)

is the attached patch acceptable ?  this disables the install target if perl 
is not available; same as if makeinfo is not available (libc.info cannot be 
fully/properly built w/out perl as it directly requires libm-err.texi which 
is generated with perl)
-mike
2006-02-22  Mike Frysinger  <vapier@gentoo.org>

	* manual/Makefile (install): Only build manual when perl is available.

--- libc/manual/Makefile
+++ libc/manual/Makefile
@@ -179,6 +179,7 @@ realclean: distclean
 
 .PHONY: install subdir_install installdirs install-data
 install-data subdir_install: install
+ifneq ($(PERL),no)
 ifneq ($(strip $(MAKEINFO)),:)
 install: $(inst_infodir)/libc.info
 	@if $(SHELL) -c '$(INSTALL_INFO) --version' >/dev/null 2>&1; then \
@@ -186,6 +187,7 @@ install: $(inst_infodir)/libc.info
 	 $(INSTALL_INFO) --info-dir=$(inst_infodir) $(inst_infodir)/libc.info;\
 	else : ; fi
 endif
+endif
 # Catchall implicit rule for other installation targets from the parent.
 install-%: ;
 

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