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

Fix the make all-keyboards command #422

Merged
merged 1 commit into from
Jun 21, 2016

Conversation

fredizzimo
Copy link
Contributor

Unfortunately the supported targets, like "quick", "all", "clean",and so on has to be repeated two extra times, but this is the best I can do with my makefile skills.

Unfortunately the supported targets, like "quick", "all", "clean",
and so on has to be repeated two extra times, but this is the best
I can do with my makefile skills.

all-keyboards-all: $(addsuffix -all,$(KEYBOARDS))
all-keyboards-quick: $(addsuffix -quick,$(KEYBOARDS))
all-keyboards-clean: $(addsuffix -clean,$(KEYBOARDS))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If I remember my make-fu right, this should work:

all-keyboards-%: $(addsuffix -$*,${KEYBOARDS})

Copy link
Contributor Author

@fredizzimo fredizzimo Jun 21, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@algernon

That is what I thought too, and I tried many variations of this yesterday, and now again, this is what I get

$ make all-keyboards-quick
make: *** No rule to make target 'all-keyboards-quick'.  Stop.

If I do this instead though

all-keyboards-%:
    echo $(addsuffix -$*,${KEYBOARDS})

It prints out the correct rule names, so the prerequisites pattern is right. I also tried adding the debug flag to make, and it didn't help me debug the problem either. But maybe someone with better makefile programming skills could?

@jackhumbert
Copy link
Member

Thanks for looking into those - let's merge this for now, and any improvements can be built upon it :)

@jackhumbert jackhumbert merged commit a69d002 into qmk:master Jun 21, 2016
@algernon
Copy link
Contributor

Mm. I know I can make this simple, will dive into make at some point and open a PR. Thanks for testing, @fredizzimo! And apologies for the noise.

ryaninvents pushed a commit to ryaninvents/qmk_firmware that referenced this pull request Aug 12, 2016
Unfortunately the supported targets, like "quick", "all", "clean",
and so on has to be repeated two extra times, but this is the best
I can do with my makefile skills.
@fredizzimo fredizzimo deleted the fix_all-keyboards branch June 18, 2017 12:21
roxk added a commit to oursky/qmk_firmware that referenced this pull request Mar 10, 2022
jiaxin96 pushed a commit to Oh-My-Mechanical-Keyboard/qmk_firmware that referenced this pull request Oct 18, 2023
* Update info.JSON to match QMK repo modification

* Disabling extrakeys and mousekeys in vial rules.mk
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

Successfully merging this pull request may close these issues.

3 participants