Makefile: shorten recipe using default target var
This commit is contained in:
parent
858872bab8
commit
a9172824a2
2
Makefile
2
Makefile
|
@ -31,6 +31,6 @@ docs: readme
|
||||||
readme: www/data/readme.json
|
readme: www/data/readme.json
|
||||||
|
|
||||||
www/data/readme.json: www/data README.md
|
www/data/readme.json: www/data README.md
|
||||||
cat README.md | python -c 'import json,sys; print(json.dumps({"content": sys.stdin.read()}))' > www/data/readme.json
|
cat README.md | python -c 'import json,sys; print(json.dumps({"content": sys.stdin.read()}))' > $@
|
||||||
www/data bin:
|
www/data bin:
|
||||||
mkdir -p $@
|
mkdir -p $@
|
||||||
|
|
Loading…
Reference in New Issue