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
WIKI Timeout issues
Please read here if you have trouble connecting to the wiki
Recent
Questions about GUID decl...
by
440bx
[
Today
at 11:44:59 pm]
LINUX: My program stops w...
by
n7800
[
Today
at 11:23:20 pm]
ChatGPT and ObjectPascal ...
by
PascalDragon
[
Today
at 11:22:21 pm]
controls.lpr(731,15) Erro...
by
Guser979
[
Today
at 11:22:13 pm]
[Solved] Reference to bsS...
by
Wilko500
[
Today
at 11:15:03 pm]
TBufDataset with Invalid ...
by
talisjonatas
[
Today
at 11:06:24 pm]
Synapse TCP/IP client and...
by
rca
[
Today
at 10:46:14 pm]
activex.pp definition pro...
by
gues1
[
Today
at 10:27:36 pm]
Hint windows misplaced an...
by
n7800
[
Today
at 09:59:53 pm]
Input Chinese using Micro...
by
n7800
[
Today
at 09:49:38 pm]
internal Compiler Error
by
marcov
[
Today
at 09:25:27 pm]
Zeromemory vs. Fillchar
by
TBMan
[
Today
at 09:22:44 pm]
Persistent MacOS Arm M ch...
by
Grahame Grieve
[
Today
at 07:56:35 pm]
Flow fields and BFS
by
TBMan
[
Today
at 06:58:22 pm]
Create a png image from a...
by
thijsvandien
[
Today
at 06:53:41 pm]
Platform eXtended Library...
by
pascalbythree
[
Today
at 05:10:57 pm]
Tangled Line Pattern Make...
by
Boleeman
[
Today
at 04:27:51 pm]
DBF edit & append problem
by
Petrus Vorster
[
Today
at 04:08:21 pm]
[Solved] Can't install mo...
by
lainz
[
Today
at 03:28:41 pm]
[Solved]Open Project fail...
by
cdbc
[
Today
at 03:06:30 pm]
Popup Form to close when ...
by
Thaddy
[
Today
at 02:10:55 pm]
Spikey Splat Creatures fr...
by
Boleeman
[
Today
at 01:19:35 pm]
Amigo programming languag...
by
paxscript
[
Today
at 12:20:33 pm]
Ballet of Lines and Dots ...
by
Boleeman
[
Today
at 09:19:59 am]
Using icons in own open s...
by
paule32
[
Today
at 08:14:05 am]
« previous
next »
Print
Pages: [
1
]
Author
Topic: Target file name former to $HOME/something (Read 3884 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