|
From: Ethan M. <merritt@u.washington.edu> - 2008-12-29 22:28:18
|
On Monday 29 December 2008 13:43:48 pl...@pi... wrote: > Ethan Merritt wrote: > > On Monday 29 December 2008 05:12:09 pl...@pi... wrote: > >> Hi, > >> > >> I'm trying to follow the tortuous workings of automake to add a new dir > >> for svg javascript. I am is needing help ;) > > > > I am a bit confused. > > Are you talking about adding a new directory to the cvs source tree? > > That has nothing in particular to do with automake. > > The commands would be: > > mkdir temp/javascriptdir > > cp $my-new-stuff/* temp/javascriptdir > > cvs add term/javascriptdir > > cvs commit -m 'Add javascriptdir to the source tree' > > But you can't do that unless you have write access to the cvs tree. > > No, that will have to be done later to set up any fixed files to be > distributed like the postscript files but for now I have created them > locally. > > What I want to do in ensure the new dir is created and installed by > 'make install'. It would seem it has to get included in am__installdirs > but I cant see how. The attached patch should do it. Season to taste if the files are called something other than *.js > > thanks. > > > > >> I want to copy the use of the postscriptdir and have defined varibable > >> javascriptdir but cannnot see how to add this to the list of installdirs > >> to get it created and populated. > >> > >> term/Makefile:am__installdirs = "$(DESTDIR)$(luadir)" > >> "$(DESTDIR)$(postscriptdir)" > > > > Still confused, but perhaps you want: > > > > %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% > > diff -ur gnuplot/term/Makefile.am.in gnuplot-cvs/term/Makefile.am.in > > --- gnuplot-old/term/Makefile.am.in 2008-12-23 11:22:18.000000000 -0800 > > +++ gnuplot-new/term/Makefile.am.in 2008-12-29 10:44:25.000000000 -0800 > > @@ -2,7 +2,7 @@ > > AUTOMAKE_OPTIONS = foreign 1.2h > > > > EXTRA_DIST = README Makefile.am.in driver.h impcodes.h \ > > -object.h post.h $(CORETERM) PostScript lua > > +object.h post.h $(CORETERM) PostScript lua javascriptdir > > > > postscriptdir = $(pkgdatadir)/$(VERSION_MAJOR)/PostScript > > > > %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% > > > > That will ensure that your new directory is included in a tarball of the > > distributed package. I suggest that naming this directory simply "svg" > > would be better than "javascriptdir", because it might end up holding > > other svg-related things that are not javascript. > > > > > > > >> maybe someone familiar with this could point me in the right direction. > >> > >> I have modified svg.trm to read in a script from that dir and insert it > >> as a <script> tag at the top of the SVG output. That much works so I > >> have a mechanism within gnuplot to add interactive content to svg. > >> > >> > >> thanks , Peter. > > > > > > -- Ethan A Merritt Biomolecular Structure Center University of Washington, Seattle 98195-7742 |