From 8aade19c8c38fc92ee83b4f1d88ec103dd5d2943 Mon Sep 17 00:00:00 2001 From: default Date: Tue, 8 Nov 2022 13:01:10 +0100 Subject: [PATCH] New Makefile variable PREFIX_MAN, to install man pages wherever you want. --- Makefile | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index bd8dcd7..3b9aac5 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,5 @@ PREFIX=/usr/local +PREFIX_MAN=$(PREFIX)/man CFLAGS=-g -Wall all: snac @@ -17,12 +18,12 @@ dep: install: install -m 755 snac $(PREFIX)/bin/snac - mkdir -p -m 755 $(PREFIX)/man/man1 - install -m 644 doc/snac.1 $(PREFIX)/man/man1/snac.1 - mkdir -p -m 755 $(PREFIX)/man/man5 - install -m 644 doc/snac.5 $(PREFIX)/man/man5/snac.5 - mkdir -p -m 755 $(PREFIX)/man/man8 - install -m 644 doc/snac.8 $(PREFIX)/man/man8/snac.8 + mkdir -p -m 755 $(PREFIX_MAN)/man1 + install -m 644 doc/snac.1 $(PREFIX_MAN)/man1/snac.1 + mkdir -p -m 755 $(PREFIX_MAN)/man5 + install -m 644 doc/snac.5 $(PREFIX_MAN)/man5/snac.5 + mkdir -p -m 755 $(PREFIX_MAN)/man8 + install -m 644 doc/snac.8 $(PREFIX_MAN)/man8/snac.8 activitypub.o: activitypub.c xs.h xs_encdec.h xs_json.h xs_curl.h \ xs_mime.h xs_openssl.h xs_regex.h xs_time.h snac.h