2024-05-11 21:03:00 +02:00
|
|
|
PREFIX = /usr/local
|
|
|
|
BINDIR = $(PREFIX)/bin
|
|
|
|
MANDIR = $(PREFIX)/man/man8
|
2024-05-12 01:19:45 +02:00
|
|
|
LIBEXECDIR = $(PREFIX)/libexec/sourcezap
|
|
|
|
SHAREDIR = $(PREFIX)/share/sourcezap
|
2024-05-11 21:03:00 +02:00
|
|
|
|
|
|
|
install:
|
2024-07-20 06:43:11 +02:00
|
|
|
@find bin/ libexec/ share/ man/ -type d -exec install -v -d $(PREFIX)/"{}" \;
|
2024-07-19 22:14:23 +02:00
|
|
|
@find bin/ libexec/ -type f -exec install -v -m 0755 "{}" $(PREFIX)/"{}" \;
|
|
|
|
@find share/ man/ -type f -exec install -v -m 0644 "{}" $(PREFIX)/"{}" \;
|
2024-05-11 21:03:00 +02:00
|
|
|
|
|
|
|
deinstall:
|
2024-08-19 04:05:52 +02:00
|
|
|
rm -rf $(BINDIR)/sourcezap
|
|
|
|
rm -rf $(MANDIR)/sourcezap.8
|
2024-05-11 21:03:00 +02:00
|
|
|
rm -rf $(LIBEXECDIR)
|
|
|
|
rm -rf $(SHAREDIR)
|
|
|
|
|
|
|
|
shellcheck:
|
2024-07-27 03:36:35 +02:00
|
|
|
find bin/ libexec/ -type f -exec shellcheck -x "{}" \;
|