portzap/Makefile
0x1eef efc9f7ed28
Some checks are pending
portzap / shellcheck (push) Waiting to run
Break up 'portzap-install' into multiple files
2024-08-19 00:01:12 -03:00

19 lines
563 B
Makefile

PREFIX = /usr/local
BINDIR = $(PREFIX)/bin
MANDIR = $(PREFIX)/man/man8
LIBEXECDIR = $(PREFIX)/libexec/portzap
SHAREDIR = $(PREFIX)/share/portzap
install:
@find bin/ libexec/ share/ man/ -type d -exec install -v -d $(PREFIX)/"{}" \;
@find bin/ libexec/ -type f -exec install -v -m 0755 "{}" $(PREFIX)/"{}" \;
@find share/ man/ -type f -exec install -v -m 0644 "{}" $(PREFIX)/"{}" \;
deinstall:
rm -rf $(BINDIR)/portzap
rm -rf $(MANDIR)/portzap.8
rm -rf $(LIBEXECDIR)
rm -rf $(SHAREDIR)
shellcheck:
find bin/ libexec/ -type f -exec shellcheck -x "{}" \;