Skip to content

Commit

Permalink
Updated Makefile to use newer kalamine syntaxe.
Browse files Browse the repository at this point in the history
  • Loading branch information
Nuclear-Squid committed Feb 1, 2024
1 parent b644675 commit 0a4f2b6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
all:
@for file in layouts/*.toml; do \
kalamine $$file --out "layouts/$$(basename $${file%.*}).json"; \
kalamine make $$file --out "layouts/$$(basename $${file%.*}).json"; \
done
@for file in layouts/*.yaml; do \
kalamine $$file --out "layouts/$$(basename $${file%.*}).json"; \
kalamine make $$file --out "layouts/$$(basename $${file%.*}).json"; \
done

watch:
@inotifywait -m layouts -e close_write | while read -r _path _action file; do \
case $$file in \
*yaml) kalamine "layouts/$$file" --out "layouts/$$(basename "$${file%.*}").json";; \
*toml) kalamine "layouts/$$file" --out "layouts/$$(basename "$${file%.*}").json";; \
*yaml) kalamine make "layouts/$$file" --out "layouts/$$(basename "$${file%.*}").json";; \
*toml) kalamine make "layouts/$$file" --out "layouts/$$(basename "$${file%.*}").json";; \
esac \
done

Expand Down

0 comments on commit 0a4f2b6

Please sign in to comment.