Vonng / Capslock

Make Capslock Great Again!
Apache License 2.0
1.42k stars 285 forks source link

What's the use case of the "all:" target in makefile? #39

Open darkato42 opened 2 years ago

darkato42 commented 2 years ago

Hi,

Thanks for the awesome work! I'm forking this repo and add my own customisations.

I understand command make install will copy the new capslock.json to the complex_modifications folder. However, what's the intended use of make all here? The karabiner.json file isn't available or generated within this path.

compile:
    yq eval capslock.yml -j > capslock.json

install: compile
    mkdir -p $$HOME/.config/karabiner/assets/complex_modifications/
    cp capslock.json $$HOME/.config/karabiner/assets/complex_modifications/

all:
    mkdir -p $$HOME/.config/karabiner/
    cp karabiner.json $$HOME/.config/karabiner/

.PHONY: compile,install,all
Vonng commented 2 years ago

Well it’s actually an obsolete stub to overwrite karabiner config for debug purpose. Will be removed.