summaryrefslogtreecommitdiff
path: root/Makefile
blob: 327ab6891a982b1cc78a3e64c6332e0940a1a8e2 (plain)
1
2
3
4
5
6
7
8
9
config_dir = /etc/btrfs-backup/remotes
remotes = $(notdir $(wildcard $(config_dir)/*.json))

ifeq ($(remotes),)
$(error You must put at least one *.json configuration file into <file:///$(config_dir)>).
endif

go:
	for remote in $(remotes); do bash$(if $(verbose), -x) push-btrfs $$remote$(if $(verbose),;, &) done; wait