mirror of
https://framagit.org/ppom/reaction
synced 2026-03-14 20:55:47 +01:00
Fix package Makefile
- Fix install path for binaries - Make use of DESTDIR and PREFIX for systemd directory
This commit is contained in:
parent
0cd765251a
commit
d2ffbc52a3
1 changed files with 6 additions and 6 deletions
|
|
@ -1,19 +1,19 @@
|
|||
PREFIX ?= /usr/local
|
||||
BINDIR = $(PREFIX)/bin
|
||||
MANDIR = $(PREFIX)/share/man/man1
|
||||
SYSTEMDDIR ?= /etc/systemd
|
||||
SYSTEMDDIR ?= $(PREFIX)/lib/systemd
|
||||
|
||||
install:
|
||||
install -Dm755 reaction $(DESTDIR)$(BINDIR)
|
||||
install -Dm755 reaction-plugin-virtual $(DESTDIR)$(BINDIR)
|
||||
install -Dm755 reaction $(DESTDIR)$(BINDIR)/reaction
|
||||
install -Dm755 reaction-plugin-virtual $(DESTDIR)$(BINDIR)/reaction-plugin-virtual
|
||||
install -Dm644 reaction*.1 -t $(DESTDIR)$(MANDIR)/
|
||||
install -Dm644 reaction.bash $(DESTDIR)$(PREFIX)/share/bash-completion/completions/reaction
|
||||
install -Dm644 reaction.fish $(DESTDIR)$(PREFIX)/share/fish/vendor_completions.d/reaction.fish
|
||||
install -Dm644 _reaction $(DESTDIR)$(PREFIX)/share/zsh/vendor-completions/_reaction
|
||||
install -Dm644 reaction.service $(SYSTEMDDIR)/system/reaction.service
|
||||
install -Dm644 reaction.service $(DESTDIR)$(SYSTEMDDIR)/system/reaction.service
|
||||
|
||||
install-ipset:
|
||||
install -Dm755 reaction-plugin-ipset $(DESTDIR)$(BINDIR)
|
||||
install -Dm755 reaction-plugin-ipset $(DESTDIR)$(BINDIR)/reaction-plugin-ipset
|
||||
|
||||
remove:
|
||||
rm -f $(DESTDIR)$(BINDIR)/bin/reaction
|
||||
|
|
@ -23,4 +23,4 @@ remove:
|
|||
rm -f $(DESTDIR)$(PREFIX)/share/bash-completion/completions/reaction
|
||||
rm -f $(DESTDIR)$(PREFIX)/share/fish/vendor_completions.d/reaction.fish
|
||||
rm -f $(DESTDIR)$(PREFIX)/share/zsh/vendor-completions/_reaction
|
||||
rm -f $(SYSTEMDDIR)/system/reaction.service
|
||||
rm -f $(DESTDIR)$(SYSTEMDDIR)/system/reaction.service
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue