opendoas

A portable version of the OpenBSD `doas` command
git clone https://pi.duncano.de/git/opendoas.git
Log | Files | Refs | README | LICENSE

commit cb888450540a9a9efbca1badb056fc6cce9f9feb
parent 4c108fee7db8225cd891aba06ed3733f5f36ce7d
Author: Nathan Holstein <nathan.holstein@gmail.com>
Date:   Wed,  5 Aug 2015 09:53:11 -0400

Add installation rules for man files.

Diffstat:
Makefile | 7+++++--
1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/Makefile b/Makefile @@ -43,7 +43,10 @@ ${BINDIR}: ${BINDIR}/${PROG}: .${PROG}.chmod ${BINDIR} mv $< $@ -install: ${BINDIR}/${PROG} +MAN:=$(join $(addprefix ${MANDIR}/man,$(patsubst .%,%/,$(suffix ${MAN}))),${MAN}) +$(foreach M,${MAN},$(eval $M: $(notdir $M); cp $$< $$@)) + +install: ${BINDIR}/${PROG} ${MAN} clean: rm -f libopenbsd.a @@ -51,5 +54,5 @@ clean: rm -f ${OBJS} rm -f ${PROG} -.PHONY: default clean install +.PHONY: default clean install man .INTERMEDIATE: .${PROG}.chmod