summaryrefslogtreecommitdiff
path: root/Makefile
blob: 9cd5b66f15709a263ae36c3b024179d63df1cb87 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
PREFIX    = /usr/local
DPREFIX   = ${DESTDIR}${PREFIX}
MANDIR    = ${DPREFIX}/share/man
DOAS_CONF = /etc/doas.conf

all:

install:
	mkdir -p ${DPREFIX}/bin ${MANDIR}/man8
	cp doasedit ${DPREFIX}/bin
	cp doasedit.8 ${MANDIR}/man8
	sed 's|@DOAS_CONF@|${DOAS_CONF}|g' vidoas   >${DPREFIX}/bin/vidoas
	sed 's|@DOAS_CONF@|${DOAS_CONF}|g' vidoas.8 >${MANDIR}/man8/vidoas.8
	chmod +x ${DPREFIX}/bin/vidoas