Makefile.in 601 B

12345678910111213141516171819202122232425262728293031
  1. all: test
  2. test: tmp tmp/%%PROM_PREFIX%%.prom tmp/nodes.json.pp tmp/%%PROM_GRAPH_PREFIX%%.prom tmp/graph.json.pp
  3. tmp:
  4. mkdir $@
  5. tmp/%%PROM_PREFIX%%.prom: ../src/nodes2prom tmp/nodes.json
  6. $> > $@.new && \
  7. mv $@.new $@
  8. tmp/nodes.json:
  9. %%FETCH_CMD%% $@.tmp "%%NODES_URL%%" && \
  10. mv $@.tmp $@
  11. tmp/nodes.json.pp: ../src/json-pp tmp/nodes.json
  12. $> $@
  13. tmp/%%PROM_GRAPH_PREFIX%%.prom: ../src/graph2prom tmp/graph.json
  14. $> > $@.new && \
  15. mv $@.new $@
  16. tmp/graph.json:
  17. %%FETCH_CMD%% $@.tmp "%%GRAPH_URL%%" && \
  18. mv $@.tmp $@
  19. tmp/graph.json.pp: ../src/json-pp tmp/graph.json
  20. $> $@
  21. clean:
  22. rm -rf tmp