-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
21 lines (19 loc) · 1016 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
-include .env
export $(shell sed 's/=.*//' .env)
.PHONY: help
## Displays available commands
help:
@echo "$$(tput bold)Available rules:$$(tput sgr0)";echo;sed -ne"/^## /{h;s/.*//;:d" -e"H;n;s/^## //;td" -e"s/:.*//;G;s/\\n## /---/;s/\\n/ /g;p;}" ${MAKEFILE_LIST}|LC_ALL='C' sort -f|awk -F --- -v n=$$(tput cols) -v i=19 -v a="$$(tput setaf 6)" -v z="$$(tput sgr0)" '{printf"%s%*s%s ",a,-i,$$1,z;m=split($$2,w," ");l=n-i;for(j=1;j<=m;j++){l-=length(w[j])+1;if(l<= 0){l=n-i-length(w[j])-1;printf"\n%*s ",-i," ";}printf"%s ",w[j];}printf"\n";}'|more $(shell test $(shell uname) == Darwin && echo '-Xr')
## Alias for "docker-compose up"
up:
docker-compose up
## Alias for "docker-compose down"
down:
docker-compose down
## Application initialization
create-local:
graph create --node http://localhost:8020/ abracadabra-subgraph
remove-local:
graph remove --node http://localhost:8020/ abracadabra-subgraph
deploy-local:
graph deploy --node http://localhost:8020/ --ipfs http://localhost:5001 abracadabra-subgraph