Last active
May 27, 2019 21:30
-
-
Save NeilW/351279a0a7ee44a27d8360e00cf07d9e to your computer and use it in GitHub Desktop.
YAML2JSON: Auto makefile rule to create JSON files from YAML files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%.json : %.yaml | |
ruby -rjson -ryaml -e "puts JSON.pretty_generate(YAML.load(ARGF.read))" $< > $@ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment