summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorAndrew Cady <d@jerkface.net>2023-05-23 17:27:14 -0400
committerAndrew Cady <d@jerkface.net>2023-05-23 17:27:14 -0400
commit4850f5ceb885b4f568ace6208e18f9d444034b3f (patch)
tree6bed394471606efb05350e07735e474f2c32e50e /Makefile
parentf092cf80f9ee0c3a86ba9c62fc8e840bd6d5d76d (diff)
move some files to src/
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 0dd9c7e..03387dd 100644
--- a/Makefile
+++ b/Makefile
@@ -5,14 +5,14 @@ ifeq ($(remotes),)
5$(error You must put at least one *.json configuration file into <file:///$(config_dir)>). 5$(error You must put at least one *.json configuration file into <file:///$(config_dir)>).
6endif 6endif
7 7
8unit_files = push-btrfs.path push-btrfs.service push-btrfs.timer push-btrfs@.service push-btrfs@.timer 8unit_files = $(wildcard src/*.service src/*.timer)
9 9
10enable_unit = push-btrfs.timer 10enable_unit = push-btrfs.timer
11 11
12install: 12install:
13 systemctl link $(addprefix ./, $(unit_files)) 13 systemctl link $(addprefix ./, $(unit_files))
14 systemctl reset-failed $(enable_unit) 14 systemctl reset-failed $(notdir $(enable_unit))
15 systemctl enable --now $(enable_unit) 15 systemctl enable --now $(notdir $(enable_unit))
16 16
17go: 17go:
18 for remote in $(remotes); do bash$(if $(verbose), -x) push-btrfs $$remote$(if $(verbose),;, &) done; wait 18 for remote in $(remotes); do bash$(if $(verbose), -x) push-btrfs $$remote$(if $(verbose),;, &) done; wait