Current dir in makefile?
Current dir in makefile?
This is probably a stupid question, but is there some predefined variable or something else in (GNU) makefiles that expands to the current directory? I want it to run a command that requires only absolute pathnames, so rather than tying it to one dir I would prefer it if make could fill it in. Looked in the make manual, but didn't find anything useful there.
- Combuster
- Member
- Posts: 9301
- Joined: Wed Oct 18, 2006 3:45 am
- Libera.chat IRC: [com]buster
- Location: On the balcony, where I can actually keep 1½m distance
- Contact:
Re: Current dir in makefile?
Try shelling pwd and grabbing the output.
Re: Current dir in makefile?
Works, thanks! (Can't believe I missed that one)