Makefile 486 B

1234567891011121314151617181920212223
  1. .POSIX:
  2. DLTOOL = wget -nv --show-progress -O-
  3. LISTS = \
  4. erc20_token_list.json \
  5. solana_token_list.json
  6. ERC20 = https://tokens.coingecko.com/uniswap/all.json
  7. SOL = https://github.com/solana-labs/token-list/raw/main/src/tokens/solana.tokenlist.json
  8. all: $(LISTS)
  9. erc20_token_list.json:
  10. $(DLTOOL) $(ERC20) > $@
  11. solana_token_list.json:
  12. $(DLTOOL) $(SOL) | sed \
  13. -e 's@"symbol": "BTC"@"symbol": "SBTC"@' \
  14. -e 's@"symbol": "ETH"@"symbol": "SETH"@' \
  15. > $@
  16. .PHONY: all $(LISTS)