* * *

Author Topic: Target file name former to $HOME/something  (Read 1117 times)

DonaldShimoda

  • Jr. Member
  • **
  • Posts: 71
    • Parallel Pascal Worlds
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

Phil

  • Hero Member
  • *****
  • Posts: 2316
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).






DonaldShimoda

  • Jr. Member
  • **
  • Posts: 71
    • Parallel Pascal Worlds
Re: Target file name former to $HOME/something
« Reply #2 on: September 19, 2016, 01:37:19 am »
In Lazarus you can probably use the $(Home) macro.


That works, thanks!

Phil

  • Hero Member
  • *****
  • Posts: 2316
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.

 

Recent

Get Lazarus at SourceForge.net. Fast, secure and Free Open Source software downloads Open Hub project report for Lazarus