|
From: Daniel J S. <dan...@ie...> - 2013-08-06 20:26:12
|
On 08/06/2013 02:56 PM, Daniel J Sebald wrote:
[snip]
> I'm not seeing that:
>
> [gnuplot]# make version.o
> make: *** No rule to make target `version.o'. Stop.
>
> [gnuplot]# make -v
> GNU Make 3.82
> Built for x86_64-redhat-linux-gnu
> Copyright (C) 2010 Free Software Foundation, Inc.
>
> When the build process is carried out, it must be using the version.c
> that exists in the repository instead of an updated version.c. Now that
> I know what it is supposed to look like, I can investigate.
I was looking at the Makefile.maint in the root directory. I see there
is another in the src/ directory as well.
I downloaded a fresh CVS source tree and check date on version.c:
[gnuplot]# ls -l src/version.c
-rw-r--r--. 1 root root 2151 Feb 26 17:38 src/version.c
I ran "prepare" and "configure".
[gnuplot]# ls -l src/version.c
-rw-r--r--. 1 root root 2151 Feb 26 17:38 src/version.c
Change to the src directory:
[root@moorglade src]# make version.o
Making version.c
sed -e '/^const char gnuplot_date/ s/"[^"]*"/"2013-08-06 "/' \
version.c > version.ct;
mv version.ct version.c
gcc -DHAVE_CONFIG_H -I. -I.. -I../term -I../term
-DBINDIR=\"/usr/local/bin\"
-DX11_DRIVER_DIR=\"/usr/local/libexec/gnuplot/4.7\"
-DQT_DRIVER_DIR=\"/usr/local/libexec/gnuplot/4.7\"
-DGNUPLOT_SHARE_DIR=\"/usr/local/share/gnuplot/4.7\"
-DGNUPLOT_PS_DIR=\"/usr/local/share/gnuplot/4.7/PostScript\"
-DGNUPLOT_JS_DIR=\"/usr/local/share/gnuplot/4.7/js\"
-DGNUPLOT_LUA_DIR=\"/usr/local/share/gnuplot/4.7/lua\"
-DCONTACT=\"gnu...@li...\"
-DHELPFILE=\"/usr/local/share/gnuplot/4.7/gnuplot.gih\"
-DGNUPLOT_X11=\"`echo gnuplot_x11 | sed 's,x,x,'`\"
-DXAPPLRESDIR=\"/etc/X11/app-defaults/\" -I/usr/local/include -g -O2
-MT version.o -MD -MP -MF .deps/version.Tpo -c -o version.o version.c
mv -f .deps/version.Tpo .deps/version.Po
OK, that looks right now.
So I think I see what the issue is--when I built gnuplot from outside
the source tree, e.g.,
mkdir ../build1
cd ../build1
../gnuplot/configure
make
that sed script is not occurring (I checked the log). Probably because
version.c no longer appears in the src/ directory of the build root.
Dan
|