Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use a custom variable in the upest level main.mk #1

Open
dolanor opened this issue Aug 1, 2012 · 0 comments
Open

Use a custom variable in the upest level main.mk #1

dolanor opened this issue Aug 1, 2012 · 0 comments

Comments

@dolanor
Copy link

dolanor commented Aug 1, 2012

I want to share a variable containing the target dir for lib.

the tree is
/

  • bin/
  • lib/
  • src/
    • libmylib/
    • libmyotherlib/

I want to have some variable defined in /main.mk like LIB_TARGET_DIR that I want to use in my /src/libmylib/main.mk like
TARGET_DIR := $(LIB_TARGET_DIR)
So that I can use it in /src/libmyotherlib/main.mk too
FOr 2 libs, it is not a big deal to customize the TARGET_DIR for each, but when you might have more, it more problematic.
Is there already a way to do that ? Or do I use it badly ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant