summaryrefslogtreecommitdiff
path: root/Makefile
blob: 8f06eebe0174019b427ec2a3ecd2320fdf1b50c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Portable makefile supporting OpenBSD and GNU/Linux.

PREFIX = /usr/local
INSTALL = install
BINDIR = bin
BINOWN = root
BINGRP = root
BINMODE = 555
MANDIR = man/man
MANOWN = root
MANGRP = root
MANMODE = 444

include config.mk

all:

clean:

lint:
	shellcheck -a jotpass.ksh
	mandoc -T lint -W warning jotpass.1
	-mandoc -T lint -W all jotpass.1

install:
	${INSTALL} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} jotpass.ksh ${DESTDIR}${PREFIX}/${BINDIR}/jotpass
	${INSTALL} -o ${MANOWN} -g ${MANGRP} -m ${MANMODE} jotpass.1 ${DESTDIR}${PREFIX}/${MANDIR}1/jotpass.1

uninstall:
	rm -f ${DESTDIR}${PREFIX}/${BINDIR}/jotpass
	rm -f ${DESTDIR}${PREFIX}/${MANDIR}1/jotpass.1
Generated by cgit. See skreutz.com for my tech blog and contact information.