New Makefile variable PREFIX_MAN, to install man pages wherever you want.

This commit is contained in:
default 2022-11-08 13:01:10 +01:00
parent c3e3db84ed
commit 8aade19c8c

View file

@ -1,4 +1,5 @@
PREFIX=/usr/local PREFIX=/usr/local
PREFIX_MAN=$(PREFIX)/man
CFLAGS=-g -Wall CFLAGS=-g -Wall
all: snac all: snac
@ -17,12 +18,12 @@ dep:
install: install:
install -m 755 snac $(PREFIX)/bin/snac install -m 755 snac $(PREFIX)/bin/snac
mkdir -p -m 755 $(PREFIX)/man/man1 mkdir -p -m 755 $(PREFIX_MAN)/man1
install -m 644 doc/snac.1 $(PREFIX)/man/man1/snac.1 install -m 644 doc/snac.1 $(PREFIX_MAN)/man1/snac.1
mkdir -p -m 755 $(PREFIX)/man/man5 mkdir -p -m 755 $(PREFIX_MAN)/man5
install -m 644 doc/snac.5 $(PREFIX)/man/man5/snac.5 install -m 644 doc/snac.5 $(PREFIX_MAN)/man5/snac.5
mkdir -p -m 755 $(PREFIX)/man/man8 mkdir -p -m 755 $(PREFIX_MAN)/man8
install -m 644 doc/snac.8 $(PREFIX)/man/man8/snac.8 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 \ 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 xs_mime.h xs_openssl.h xs_regex.h xs_time.h snac.h