mirror of
https://github.com/darkrenaissance/darkfi.git
synced 2026-01-09 14:48:08 -05:00
24 lines
486 B
Makefile
24 lines
486 B
Makefile
.POSIX:
|
|
|
|
DLTOOL = wget -nv --show-progress -O-
|
|
|
|
LISTS = \
|
|
erc20_token_list.json \
|
|
solana_token_list.json
|
|
|
|
ERC20 = https://tokens.coingecko.com/uniswap/all.json
|
|
SOL = https://github.com/solana-labs/token-list/raw/main/src/tokens/solana.tokenlist.json
|
|
|
|
all: $(LISTS)
|
|
|
|
erc20_token_list.json:
|
|
$(DLTOOL) $(ERC20) > $@
|
|
|
|
solana_token_list.json:
|
|
$(DLTOOL) $(SOL) | sed \
|
|
-e 's@"symbol": "BTC"@"symbol": "SBTC"@' \
|
|
-e 's@"symbol": "ETH"@"symbol": "SETH"@' \
|
|
> $@
|
|
|
|
.PHONY: all $(LISTS)
|