#1234 make install doesn't install demo files

5.0
closed-wont-fix
nobody
None
5
2013-05-04
2013-04-18
Mojca Miklavec
No

I'm not sure if this is intended or not, but make install doesn't install the demo files anywhere and I don't find any option to install them either.

I'm using Mac OS X 10.7 with MacPorts. I can provide more feedback, but I don't even know where to start looking.

Discussion

  • Ethan Merritt
    Ethan Merritt
    2013-04-18

    • status: open --> open-works-for-me
     
  • Ethan Merritt
    Ethan Merritt
    2013-04-18

    That is correct. The build script does not try to install demos anywhere. It is up to a distro packager, for example, to decide where if anywhere the demos would go. If you install from source then of course the full set of demos is in the source package. Otherwise most of the demo are available online, and a selected set is now included in the user manual.

     
  • Mojca Miklavec
    Mojca Miklavec
    2013-04-18

    One of developers responded me off-list with "The demos are installed during make install, without the need for any option.", so I thought that something was wrong in my installation.

    But then I have a few questions:

    1. Which files should (not) be installed? Obviously the users don't want Makefiles for example (which they would get if the whole directory is copied).

    2. Would it be acceptable to have something like --with-demodir=/usr/local/share/gnuplot/4.6/demo? (Possibly with a different syntax)

    3. Where should a "normal" linux distribution (or MacPorts for that matter) install the demo files (provided that the distribution doesn't do anything special)? /usr/local/share/gnuplot/4.6/demo? /usr/local/share/doc/gnuplot/demo (that is: next to gnuplot.pdf)?

     
  • Ethan Merritt
    Ethan Merritt
    2013-04-18

    I don't think it is the job of the development team to figure out where individual distros keep demo files. We should just leave that up to whoever is preparing the installation packages (rpm, deb, whatever).

    As to "the demos are installed during make", maybe your correspondent was thinking of "make check" or "make distcheck". These run through all the demos as part of the build process.

     
    • Mojca Miklavec
      Mojca Miklavec
      2013-04-19

      I don't think that he was referring to "make check". He simply wants to run demo files (apparently he had some problems with files fetched from the web) and would like to see them installed by default. I can understand this since I really appreciated the demo files on windows to learn gnuplot when I was still using windows.

      Now, I can add a bunch of copy commands after make install finishes, but I'm not sure which files need to be excluded (Makefiles are definitely among them) and it would be easier if I could provide a switch to install them out-of-the-box (without copying manually) to a specified location.

      Even if having a separate/new switch to install demo files is not desired by the development team, I would be happy about some guidelines about what to install.

       
  • Ethan Merritt
    Ethan Merritt
    2013-04-19

    Why would you need to exclude any files? Just copy the files in the demo directory to wherever you want them.

    For that matter, why do you need to install them someplace other than where they are right now? Add the current directory to gnuplot's loadpath and leave it at that. That's what I do, FWIW. I have the GNUPLOT_LIB pointing at $HOME/cvs/gnuplot/demo/

     
    • Mojca Miklavec
      Mojca Miklavec
      2013-04-19

      Why would you need to exclude any files?

      I feel that Makefile for example (with lots of paths defined that won't even exist any more when the demos will be run), doesn't belong to installed files.

      For that matter, why do you need to install them someplace other than where they are right now?

      What does "where they are now" mean for someone who doesn't deliberatly install himself from CVS? User either gets a binary package that has been compiled on the build server. Or gnuplot gets built on user's machine, but after "make install" the sources are removed completely. So unless demo files are copied during or right after "make install", they will be gone.

       
  • Ethan Merritt
    Ethan Merritt
    2013-05-04

    • status: open-works-for-me --> closed-wont-fix
     
  • Ethan Merritt
    Ethan Merritt
    2013-05-04

    "not a bug"