diff options
author | Andrew Cady <d@jerkface.net> | 2023-05-21 22:54:52 -0400 |
---|---|---|
committer | Andrew Cady <d@jerkface.net> | 2023-05-21 22:54:52 -0400 |
commit | 5dcbbaeb2c942356f3b9b7dba5e04ec373adfced (patch) | |
tree | 383b434ac354f243c54c7fb02a774ebc9cf69613 | |
parent | ba97b75f340b9f109a80c17ab77cb5cbee155013 (diff) |
Makefile
-rw-r--r-- | Makefile | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..327ab68 --- /dev/null +++ b/Makefile | |||
@@ -0,0 +1,9 @@ | |||
1 | config_dir = /etc/btrfs-backup/remotes | ||
2 | remotes = $(notdir $(wildcard $(config_dir)/*.json)) | ||
3 | |||
4 | ifeq ($(remotes),) | ||
5 | $(error You must put at least one *.json configuration file into <file:///$(config_dir)>). | ||
6 | endif | ||
7 | |||
8 | go: | ||
9 | for remote in $(remotes); do bash$(if $(verbose), -x) push-btrfs $$remote$(if $(verbose),;, &) done; wait | ||