From f597b1c26c56c1a538cb3c19207c66333dfde44d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rapha=C3=ABl=20Droz?= Date: Fri, 23 Oct 2020 16:43:31 -0300 Subject: [PATCH] adapted Makefile to Debian build --- Makefile | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/Makefile b/Makefile index 1ca9fc6..7f0faf4 100644 --- a/Makefile +++ b/Makefile @@ -1,9 +1,9 @@ -PREFIX=/usr +PREFIX ?= /usr # Where the script binary should go -BINPATH = $(PREFIX)/bin -SBINPATH = $(PREFIX)/sbin -MANPATH = $(PREFIX)/share/man -SHAREDIR = $(PREFIX)/share/smailq +BINPATH = $(DESTDIR)$(PREFIX)/bin +SBINPATH = $(DESTDIR)$(PREFIX)/sbin +MANPATH = $(DESTDIR)$(PREFIX)/share/man/man1 +SHAREDIR = $(DESTDIR)$(PREFIX)/share/smailq CONFFILE = $(SHAREDIR)/smailq.conf.sample ###################################################################### @@ -11,18 +11,16 @@ CONFFILE = $(SHAREDIR)/smailq.conf.sample all: manpage install: all + mkdir -p $(BINPATH) $(SBINPATH) $(MANPATH) $(SHAREDIR) install -m 0755 smailq $(BINPATH)/smailq install -m 0755 mailq $(BINPATH)/mailq install -m 0755 sendmail $(SBINPATH)/sendmail - mkdir -p $(SHAREDIR) install -m 0644 smailq.conf $(CONFFILE) - install -m 0644 smailq.1 $(MANPATH)/man1/smailq.1 - bzip2 -f $(MANPATH)/man1/smailq.1 + install -m 0644 smailq.1 $(MANPATH)/smailq.1 + bzip2 -f $(MANPATH)/smailq.1 manpage: smailq.1 smailq.1: smailq.docbook - docbook2man.pl $< + docbook2x-man $< #groff -t -e -mandoc -Tps smailq.1 > smailq.ps - - -- 2.39.5