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
TDateTimePicker - Make th...
by
AlexanderT
[
Today
at 04:23:28 pm]
is there PDS reader/expor...
by
Aruna
[
Today
at 04:13:54 pm]
Help needed on how to do ...
by
paweld
[
Today
at 01:45:29 pm]
equivalent to C/C++ "offs...
by
jamie
[
Today
at 12:58:11 pm]
Source Editor Collapsed P...
by
J-G
[
Today
at 11:17:14 am]
Habari STOMP Clients for ...
by
mjustin
[
Today
at 11:15:54 am]
UI app to work with SQLit...
by
Tomu
[
Today
at 11:10:23 am]
Questions on slight diffe...
by
egsuh
[
Today
at 09:45:30 am]
Have anybody used Horse f...
by
egsuh
[
Today
at 08:31:21 am]
TCollection wiki entry
by
Thaddy
[
Today
at 07:06:53 am]
Printing on HP Smart Tank
by
jamie
[
Today
at 01:55:25 am]
Problems with creating a ...
by
jamie
[
Today
at 12:10:44 am]
Fpcupdeluxe
by
cdbc
[July 10, 2026, 11:26:16 pm]
val return code
by
Paolo
[July 10, 2026, 10:58:32 pm]
Gtk3 becomes default widg...
by
PascalDragon
[July 10, 2026, 09:59:25 pm]
Seeking performance feedb...
by
Xenno
[July 10, 2026, 04:31:34 pm]
Pls support Double Comman...
by
Alexx2000
[July 10, 2026, 04:02:56 pm]
Ignoring Exceptions - Hit...
by
Martin_fr
[July 10, 2026, 03:50:47 pm]
Lazarus 4.6 may erase you...
by
Benoni_Edin
[July 10, 2026, 01:22:02 pm]
Greyed out controls?
by
LeP
[July 10, 2026, 12:21:25 pm]
Creating binary
by
marcov
[July 10, 2026, 11:25:17 am]
Hello. I'm new to this co...
by
onionmixer
[July 10, 2026, 03:55:53 am]
Selecting from a list of ...
by
J-G
[July 09, 2026, 11:38:39 pm]
A recreation of the class...
by
count
[July 09, 2026, 08:53:45 pm]
GTK3 is now the default w...
by
bonmario
[July 09, 2026, 07:48:59 pm]
« previous
next »
Print
Pages: [
1
]
Author
Topic: Target file name former to $HOME/something (Read 4039 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