2024-04-02 08:45:07 +02:00
|
|
|
PREFIX = /usr/local
|
|
|
|
BINDIR = $(PREFIX)/bin
|
|
|
|
MANDIR = $(PREFIX)/man/man8
|
2024-04-08 01:27:18 +02:00
|
|
|
LIBEXECDIR = $(PREFIX)/libexec/portzap
|
|
|
|
SHAREDIR = $(PREFIX)/share/portzap
|
2024-04-02 08:45:07 +02:00
|
|
|
|
|
|
|
install:
|
2024-06-30 09:23:57 +02:00
|
|
|
install -d $(BINDIR) $(LIBEXECDIR) $(LIBEXECDIR)/commands $(LIBEXECDIR)/utils $(LIBEXECDIR)/setup $(SHAREDIR) $(MANDIR)
|
2024-04-02 08:45:07 +02:00
|
|
|
install -m 0755 bin/portzap $(BINDIR)
|
2024-04-19 10:49:49 +02:00
|
|
|
install -m 0755 bin/setup-portzap $(BINDIR)
|
2024-05-23 05:05:43 +02:00
|
|
|
install -m 0755 libexec/portzap/commands/* $(LIBEXECDIR)/commands
|
|
|
|
install -m 0755 libexec/portzap/utils/* $(LIBEXECDIR)/utils
|
2024-06-30 09:23:57 +02:00
|
|
|
install -m 0755 libexec/portzap/setup/* $(LIBEXECDIR)/setup
|
2024-04-08 01:27:18 +02:00
|
|
|
install -m 0644 share/portzap/* $(SHAREDIR)
|
2024-04-02 08:45:07 +02:00
|
|
|
install -m 0644 man/man8/portzap.8 $(MANDIR)
|
|
|
|
|
|
|
|
deinstall:
|
2024-04-08 01:27:18 +02:00
|
|
|
rm $(BINDIR)/portzap
|
2024-04-19 11:24:05 +02:00
|
|
|
rm $(BINDIR)/setup-portzap
|
2024-04-08 01:27:18 +02:00
|
|
|
rm $(MANDIR)/portzap.8
|
2024-04-02 10:27:07 +02:00
|
|
|
rm -rf $(LIBEXECDIR)
|
2024-04-08 01:27:18 +02:00
|
|
|
rm -rf $(SHAREDIR)
|
2024-04-02 18:40:16 +02:00
|
|
|
|
|
|
|
shellcheck:
|
2024-05-23 05:41:21 +02:00
|
|
|
shellcheck bin/*
|
2024-05-23 05:17:07 +02:00
|
|
|
shellcheck libexec/portzap/utils/*
|
|
|
|
shellcheck libexec/portzap/commands/*
|