zerog2k / stc_diyclock

STC DIY Clock redux (STC15F204EA, STC15W404AS, STC15W408AS)
MIT License
171 stars 66 forks source link

Use sdcc from PATH again #9

Closed hachi closed 8 years ago

hachi commented 8 years ago

The docs say sdcc needs to be installed in the path, but a previous patch moved the default search to be in /usr/local/bin. This puts it back.

zerog2k commented 8 years ago

On my mac, because I installed w/ homebrew, it goes into /usr/local whereas on my ubuntu desktop, I installed from standard package, so it went into /usr. Because this works for me, and seems like a decent generic solution, I'll merge it back.

For @jjmz , or anyone else's interest, if the sdcc cant be found from the path, you can still explicitly override it via

SDCC=/foo/bar/sdcc make

Note: I have also .gitignore'd a config file where I put my own local customized env vars, e.g.

export STCGALPORT=/dev/foo/bar
export STCGALOPTS=-b 9600 -l 9600

and I load this into my shell env when working on this by

source config