Hi,
how can fpcmake be driven to only tar and gzip up the sources of it's project *without* installing to the system running on first?
Not any developer has or should have write access
to /usr/local/share/* ...
TIA
Marc

Mailing lists / fpc-pascal / 2007-07
7 messages · 2 people · –
Reply by email Subscribe to this list Your subscription
Read-only archive. Use j and k to move between messages.
Hi,
how can fpcmake be driven to only tar and gzip up the sources of it's project *without* installing to the system running on first?
Not any developer has or should have write access
to /usr/local/share/* ...
TIA
Marc
You can install to any location you want using
make install INSTALL_PREFIX=x/usr/local
tar will throw away leading slashes anyway, so it doesn't matter from where you zip/tar everything.
Jonas
That doesn't work since the prefix is set in the Makefile.fpc and the setting in the file wins:
...
[install]
prefix=/usr/local
...
$ gmake install INSTALL_PREFIX=../x
...
/usr/local/bin/ginstall -m 755 -d /usr/local/bin
/usr/local/bin/ginstall: kann Zugriffsrechte von "/usr/local/bin" nicht ändern: Operation not permitted gmake: *** [fpc_install] Fehler 1
Marc
There should be no prefix setting in the Makefile.fpc, because the default prefix depends on the target operating system. Most Makefiles don't contain it, as I use INSTALL_PREFIX all the time to install e.g. the Mac OS X release to a temporary location for packaging it (so at least everything under /fpc is ok, except for possibly the text mode IDE, as it's not built/packaged for Mac OS X by default).
Which Makefile.fpc were you quoting from?
Jonas
I see, and taking it out of the file it is correctly set for FreeBSD. And setting on the command line work. Jippie! :)
Where is setting the prefix value based on the OS running on done?
The one I wrote for my program. That program is FreeBSD only (may get ported Windows somewhen) and I'm in the process of preparing the source distfile for FreeBSD "port" (sort of RPM-like installation thingy on BSDs, works like that apt-get-stuff).
Thank you very much, now I can finish this thing and put it aside. :)
Marc
Marc Santhoff wroteWhere is setting the prefix value based on the OS running on done?
In the part of the Makefile which gets automatically added by fpcmake. Just search for PREFIX or INSTALL_PREFIX in the Makefile, and then go backwards to see from where the value comes. Or maybe search for usr/local.
Jonas
I see.
Thanks a lot,
Marc