Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Using the Lazarus IDE
»
Options
»
Target file name former to $HOME/something
Free Pascal
Website
Downloads
Wiki
Documentation
Bugtracker
Mailing List
Lazarus
Website
Downloads (Laz+FPC)
Packages (OPM)
FAQ
Wiki
Documentation (RTL/FCL/LCL)
Bugtracker
CCR Bugs
GIT
Mailing List
Other languages
Foundation
Website
Useful Wiki Links
Project Roadmap
Getting the Source
Screenshots
How to use the forum
Forum Rules
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
(preview)
Lazarus Handbook
Search
Advanced search
Recent
Parsing error?
by
jlinux
[
Today
at 02:45:35 am]
Freepascal
by
schuler
[July 14, 2026, 11:56:28 pm]
Isn’t this funny?
by
Joanna
[July 14, 2026, 11:48:50 pm]
Conscious Artificial Inte...
by
schuler
[July 14, 2026, 11:40:27 pm]
Need help with fphttpserv...
by
jamie
[July 14, 2026, 11:38:24 pm]
Lazarus Bugfix Release 4....
by
Martin_fr
[July 14, 2026, 10:55:23 pm]
equivalent to C/C++ "offs...
by
Thaddy
[July 14, 2026, 07:37:23 pm]
Many recent books on Laza...
by
Thaddy
[July 14, 2026, 06:40:46 pm]
LazSWatch - a serial port...
by
CM630
[July 14, 2026, 06:11:52 pm]
MarcoV, please contact. ...
by
jbthiel
[July 14, 2026, 05:35:26 pm]
lazbuild vs IDE: PPU chec...
by
Martin_fr
[July 14, 2026, 05:30:50 pm]
OpenDocument('Filename') ...
by
cdbc
[July 14, 2026, 12:45:35 pm]
TCollection wiki entry
by
Thaddy
[July 14, 2026, 10:56:03 am]
Install new .deb over exi...
by
Thaddy
[July 14, 2026, 07:16:45 am]
I have made some progress...
by
egsuh
[July 14, 2026, 05:36:50 am]
Lazarus Main not building...
by
dbannon
[July 14, 2026, 03:01:32 am]
Lazarus interface to Rexx...
by
mdlueck
[July 13, 2026, 09:52:18 pm]
WASM import error
by
lebao3105
[July 13, 2026, 05:51:47 pm]
Discipline your AI coding...
by
Weiss
[July 13, 2026, 04:37:42 pm]
Hello. I'm new to this co...
by
zeljko
[July 13, 2026, 02:17:38 pm]
weird error message
by
cdbc
[July 13, 2026, 12:23:13 pm]
TTL Record Count, i.e. a ...
by
Zvoni
[July 13, 2026, 09:10:08 am]
Printing on HP Smart Tank
by
Thaddy
[July 13, 2026, 07:10:37 am]
P.I.S.S. a PlugIn-framewo...
by
cdbc
[July 13, 2026, 06:38:27 am]
MVP made easier.
by
cdbc
[July 13, 2026, 06:18:24 am]
« previous
next »
Print
Pages: [
1
]
Author
Topic: Target file name former to $HOME/something (Read 4041 times)
DonaldShimoda
Full Member
Posts: 109
Target file name former to $HOME/something
«
on:
September 19, 2016, 01:03:05 am »
Want to set the target file name to $home folder.
target file directory -o
$HOME/pepe
After compile it create a $HOME/pepe folder on the same folder of my project.
I need to make the compiler respect the user home directory between installations (example on a rm is /home/pi and other linux is /home/pepe)
Any way to get this working?
TIA
Logged
Donald Shimoda [Team RO] - Blogs:
http://blogs.remobjects.com/blogs/donald
http://donaldshimoda.blogspot.com/
Phil
Hero Member
Posts: 2737
Re: Target file name former to $HOME/something
«
Reply #1 on:
September 19, 2016, 01:30:21 am »
In Lazarus you can probably use the $(Home) macro.
On Mac and Linux, that corresponds to the HOME env. variable, I would assume.
And on Windows, probably corresponds to the HOMEDRIVE and HOMEPATH env. variables (I'm guessing).
Logged
DonaldShimoda
Full Member
Posts: 109
Re: Target file name former to $HOME/something
«
Reply #2 on:
September 19, 2016, 01:37:19 am »
Quote from: Phil on September 19, 2016, 01:30:21 am
In Lazarus you can probably use the $(Home) macro.
That works, thanks!
Logged
Donald Shimoda [Team RO] - Blogs:
http://blogs.remobjects.com/blogs/donald
http://donaldshimoda.blogspot.com/
Phil
Hero Member
Posts: 2737
Re: Target file name former to $HOME/something
«
Reply #3 on:
September 19, 2016, 01:40:18 am »
Not sure where/if the master list of macros is in the Project Options dialog. I always just go to Tools | Configure External Tools and click Add to see the list, simply because I somehow remember that it's there.
Lots of useful macros in the list.
Logged
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Using the Lazarus IDE
»
Options
»
Target file name former to $HOME/something
TinyPortal
© 2005-2018