Skip to content
This repository has been archived by the owner on Mar 7, 2019. It is now read-only.

Use "make -C" syntax #29

Open
bkabrda opened this issue Jul 17, 2017 · 1 comment
Open

Use "make -C" syntax #29

bkabrda opened this issue Jul 17, 2017 · 1 comment

Comments

@bkabrda
Copy link
Contributor

bkabrda commented Jul 17, 2017

Most Makefiles that we have now do things like cd <somedir> && make <action>. The make utility actually supports the -C switch, which allows to do the same in a much more succinct (and IMO also readable) way. E.g. the above would be rewritten make -C <somedir> <action>. How about we change all Makefiles to adhere to this?

@TomasTomecek
Copy link
Member

I was reading about this before merging the first cd ... && make ... PR and I think that upstream documentation (or stackoverflow) said it doesn't matter, hence I don't have preference. Feel free to fix it, I will gladly merge.

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

No branches or pull requests

2 participants