mirror of
https://github.com/hectorm/hblock.git
synced 2026-04-20 05:56:28 +05:30
Added installcheck target
This commit is contained in:
parent
757d2e70dd
commit
e32c0de7a5
1 changed files with 10 additions and 0 deletions
10
Makefile
10
Makefile
|
|
@ -84,6 +84,16 @@ install: $(HOSTS)
|
|||
'$(SYSTEMCTL)' start hblock.timer; \
|
||||
fi
|
||||
|
||||
.PHONY: installcheck
|
||||
installcheck:
|
||||
[ -f '$(SYSCONFDIR)'/hosts ]
|
||||
[ -x '$(BINDIR)'/hblock ]
|
||||
set -eu; \
|
||||
if [ -x '$(SYSTEMCTL)' ] && [ -d '$(SYSCONFDIR)'/systemd/system ]; then \
|
||||
[ -f '$(SYSCONFDIR)'/systemd/system/hblock.service ]; \
|
||||
[ -f '$(SYSCONFDIR)'/systemd/system/hblock.timer ]; \
|
||||
fi
|
||||
|
||||
.PHONY: uninstall
|
||||
uninstall:
|
||||
rm -f '$(BINDIR)'/hblock
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue