From: dsp <> Date: Wed, 23 Jan 2008 04:40:25 +0000 (+0000) Subject: Flesh out the Makefile to support building the mdeliver(1) man page, and X-Git-Url: https://diplodocus.org/git/mdeliver/commitdiff_plain/aa3fb151c4fb7416b75e7f745973b6aa2768a29d?ds=inline;hp=3ccd655f2af2469c48d22560963c4e387ccce8b1 Flesh out the Makefile to support building the mdeliver(1) man page, and installing both the mdeliver binary and man page. To simplify the pod2man command, mdeliver.1.pod was renamed mdeliver.pod. --- diff --git a/Makefile b/Makefile index 2d691b4..6f854fa 100644 --- a/Makefile +++ b/Makefile @@ -1,8 +1,17 @@ # $Id$ -all: mdeliver processor +PREFIX=/usr/local + +all: mdeliver processor mdeliver.1 processor: processor.o libspamc.o utils.o +mdeliver.1: mdeliver.pod + pod2man -c '' -r '' $< > $@ + clean: - rm -f mdeliver processor *.o + rm -f mdeliver processor *.o mdeliver.1 + +install: all + install -m 755 mdeliver $(PREFIX)/bin/mdeliver + install -m 644 mdeliver.1 $(PREFIX)/man/man1/mdeliver.1 diff --git a/mdeliver.1.pod b/mdeliver.pod similarity index 100% rename from mdeliver.1.pod rename to mdeliver.pod