|
From: Allin C. <cot...@wf...> - 2013-08-06 20:04:40
|
On Tue, 6 Aug 2013, Daniel J Sebald wrote: > On 08/06/2013 02:37 PM, Ethan A Merritt wrote: >> On Tuesday, August 06, 2013 12:25:08 pm Daniel J Sebald wrote: > [snip] >>> Well, I see the file Makefile.maint, but I'm not sure what I'm looking >>> at. I see some THIS_VERSION, PREV_VERSION , etc. but I don't know how >>> that ties into what I see in the source code. In show.c is the line: >>> >>> fprintf(fp, fmt, >>> p, /* empty line */ >>> p, PROGRAM, >>> p, gnuplot_version, gnuplot_patchlevel, gnuplot_date, >>> >>> in which gnuplot_date is the "last modified" date. And that variable >>> comes from version.c, i.e., >>> >>> const char gnuplot_date[] = "2012-06-19 "; >>> >>> but I can't find anything in a make file that indicates gnuplot_date[] >>> is automatically generated. One has to manually change that, correct? >> >> No. >> It is automatically updated during "make". >> I've never had any problem with this, so I don't know what might be going >> wrong on your machine. >> >> Here's what I see: >> >> chauvet [92] make version.o >> Making version.c >> sed -e '/^const char gnuplot_date/ s/"[^"]*"/"2013-07-25 "/' \ >> 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 -I/usr/local/include -pthread -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -pthread -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/l > ib/glib-2.0/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 >> > > I'm not seeing that: > > [gnuplot]# make version.o > make: *** No rule to make target `version.o'. Stop. You'll get that in the top-level gnuplot directory. But the overall "make" moves into the src subdirectory, where there are rules for both version.o and version.c. Allin Cottrell |