16 lines
759 B
Makefile
16 lines
759 B
Makefile
|
### help: Show help message (default target)
|
||
|
.PHONY: help
|
||
|
help:
|
||
|
@printf "%s\n\n" "make: List of possible targets:"
|
||
|
@grep '^### .*:' $(lastword $(MAKEFILE_LIST)) | sed 's/^### \([^:]*\): \(.*\)/\1:\t\2/' | column -ts "$$(printf '\t')"
|
||
|
|
||
|
### add-index: Add index host. Arguments: url and instance-url (optional)
|
||
|
.PHONY: add-index
|
||
|
add-index:
|
||
|
docker compose -f docker-compose.yaml exec -it peertube-instance-index-filter peertube-instance-index-filter -command index -url $(url) -instance-url $(instance-url)
|
||
|
|
||
|
### reject: Reject host. Arguments: host and reason (optional)
|
||
|
.PHONY: reject
|
||
|
reject:
|
||
|
docker compose -f docker-compose.yaml exec -it peertube-instance-index-filter peertube-instance-index-filter -command reject -host $(host) -reject-reason $(reason)
|