sourcezap/Makefile

27 lines
819 B
Makefile
Raw Normal View History

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
install:
2024-06-01 06:02:12 +02:00
install -d $(BINDIR) $(LIBEXECDIR) $(LIBEXECDIR)/commands $(LIBEXECDIR)/utils $(SHAREDIR) $(MANDIR)
2024-05-12 01:19:45 +02:00
install -m 0755 bin/sourcezap $(BINDIR)
install -m 0755 bin/setup-sourcezap $(BINDIR)
2024-06-01 06:02:12 +02:00
install -m 0755 libexec/sourcezap/commands/* $(LIBEXECDIR)/commands
install -m 0755 libexec/sourcezap/utils/* $(LIBEXECDIR)/utils
2024-05-12 01:19:45 +02:00
install -m 0644 share/sourcezap/* $(SHAREDIR)
install -m 0644 man/man8/sourcezap.8 $(MANDIR)
deinstall:
2024-05-12 01:19:45 +02:00
rm $(BINDIR)/sourcezap
rm $(BINDIR)/setup-sourcezap
rm $(MANDIR)/sourcezap.8
rm -rf $(LIBEXECDIR)
rm -rf $(SHAREDIR)
shellcheck:
2024-06-01 06:02:12 +02:00
shellcheck bin/*
shellcheck libexec/sourcezap/utils/*
shellcheck libexec/sourcezap/commands/*