[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
texinfo 4.7 build problem on Solaris 8, due to $< in Makefiles
From: |
Paul Eggert |
Subject: |
texinfo 4.7 build problem on Solaris 8, due to $< in Makefiles |
Date: |
Sun, 11 Apr 2004 21:16:44 -0700 (PDT) |
I had the following problem building texinfo 4.7 on Solaris 8, using
Solaris "make":
Making all in util
...
gcc -g -O2 -o texindex texindex.o ../lib/libtxi.a
/opt/reb/lib/libintl.so -L/opt/reb/lib /opt/reb/lib/libiconv.so -lc
-R/opt/reb/lib -R/opt/reb/lib/gcc/gcc-3.3.2/lib
sed 's/__VERSION__/4.7/g' >texinfo.cat
At this point the build hung, because sed was reading from my
terminal. The problem is that Texinfo sometimes uses "$<" in ordinary
"make" rules; this isn't portable. I noticed a similar instances of
this in doc/Makefile.am. Here's a patch for both.
2004-04-11 Paul Eggert <address@hidden>
* doc/Makefile.am (info.1, infokey.1, install-info.1,
makeinfo.1, texi2dvi.1, texindex.1): Don't use $< in ordinary
rules; it's not portable.
* util/Makefile.am (texinfo.cat): Likewise.
===================================================================
RCS file: doc/Makefile.am,v
retrieving revision 4.7
retrieving revision 4.7.0.1
diff -pu -r4.7 -r4.7.0.1
--- doc/Makefile.am 2003/12/06 01:31:15 4.7
+++ doc/Makefile.am 2004/04/12 04:00:32 4.7.0.1
@@ -58,17 +58,17 @@ install-tex:
if MAINTAINER_MODE
common_mandeps = $(top_srcdir)/configure.ac
info.1: $(top_srcdir)/info/info.c $(common_mandeps)
- $(HELP2MAN) --name="read Info documents" `basename $< .c` >$@
+ $(HELP2MAN) --name="read Info documents" `basename $@ .1` >$@
infokey.1: $(top_srcdir)/info/infokey.c $(common_mandeps)
- $(HELP2MAN) --name="compile customizations for Info" `basename $< .c`
>$@
+ $(HELP2MAN) --name="compile customizations for Info" `basename $@ .1`
>$@
install-info.1: $(top_srcdir)/util/install-info.c $(common_mandeps)
- $(HELP2MAN) --name="update info/dir entries" `basename $< .c` >$@
+ $(HELP2MAN) --name="update info/dir entries" `basename $@ .1` >$@
makeinfo.1: $(top_srcdir)/makeinfo/makeinfo.c $(common_mandeps)
- $(HELP2MAN) --name="translate Texinfo documents" `basename $< .c` >$@
+ $(HELP2MAN) --name="translate Texinfo documents" `basename $@ .1` >$@
texi2dvi.1: $(top_srcdir)/util/texi2dvi $(common_mandeps)
- $(HELP2MAN) --name="print Texinfo documents" `basename $< .c` >$@
+ $(HELP2MAN) --name="print Texinfo documents" `basename $@ .1` >$@
texindex.1: $(top_srcdir)/util/texindex.c $(common_mandeps)
- $(HELP2MAN) --name="sort Texinfo index files" `basename $< .c` >$@
+ $(HELP2MAN) --name="sort Texinfo index files" `basename $@ .1` >$@
endif
# Do not create info files for distribution.
===================================================================
RCS file: util/Makefile.am,v
retrieving revision 4.7
retrieving revision 4.7.0.1
diff -pu -r4.7 -r4.7.0.1
--- util/Makefile.am 2004/04/09 21:32:06 4.7
+++ util/Makefile.am 2004/04/12 04:00:32 4.7.0.1
@@ -32,7 +32,7 @@ pkgdata_DATA = texinfo.cat
# we don't actually use version.texi in the rule, but it's one way of
# noticing when the version changes.
texinfo.cat: texinfo-cat.in $(top_srcdir)/doc/version.texi
- sed 's/__VERSION__/@VERSION@/g' $< >$@
+ sed 's/__VERSION__/@VERSION@/g' texinfo-cat.in >$@
# Most of these are for fun. The only one that's really supported is texi2dvi.
#
- texinfo 4.7 build problem on Solaris 8, due to $< in Makefiles,
Paul Eggert <=