Daniel Pocock wrote: >>> >>> >>>> One other problem. After doing a configure and make I tried to do a make >>>> >>>> >>> distdir just to get the built files in the web directory. In the resulting >>> dist directory, nothing was built in the web directory. conf.php.in was >>> there but no conf.php etc. Is there something different I need to do now >>> to >>> get all of the .in files resolved in the web directory? >>> >>> >>>> >>>> >>>> >>> Try >>> >>> make -C web conf.php version.php >>> >>> You'll notice that I've put something like that in the spec file >>> >>> >> OK, that worked but it begs the question, shouldn't this just happen on a >> "make", "make install" or "make dist*" rather than it being a separate >> command? I'm sure there must be a good reason for it, just curious. Is >> this documented somewhere other than .spec file? If I wanted to just pull >> the tarball and build it myself, I shouldn't have to be guessing at the >> build steps other than configure/make/make install. >> >> >> > `make install' has never actually installed the web files anywhere > > What has changed though is that conf.php and version.php are only > generated at the last moment rather than at the configure stage. > > However, I can probably tweak this a little more to ensure they are > generated for you, but you still have to copy them to where you want them. > I've just had a closer look at this - those files are definitely being generated during the `make install' phase, although they don't get installed anywhere.
In the spec file for the RPM, make is never invoked for the noarch target, because no binaries are built. That is why I added: make -C web conf.php version.php By comparison, on Debian, the binary packages and the web packages are built from a single source tree, so the make install target does get invoked before the *.php files are moved in to place. In a subsequent release, we should probably make sure `make install' does something for the web directory, but I didn't want to change too many things on this release. In fact, some of the other logic from the spec file (e.g. Carlo's change for compiling the Python code at the last moment) could and should probably be integrated into the Makefiles too. ------------------------------------------------------------------------------ The Planet: dedicated and managed hosting, cloud storage, colocation Stay online with enterprise data centers and the best network in the business Choose flexible plans and management services without long-term contracts Personal 24x7 support from experience hosting pros just a phone call away. http://p.sf.net/sfu/theplanet-com _______________________________________________ Ganglia-developers mailing list Ganglia-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ganglia-developers