~poptart/hosaka-pki

ref: 3e7aaa515a8f42df89b0e4840f6aaf6616a928f5 hosaka-pki/Makefile -rw-r--r-- 586 bytes
3e7aaa51 — terrorbyte Screw it, I'll make it a real project 2 years ago
                                                                                
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
include config.mk

all: check

check:
	shellcheck -a -x -s sh ./hosaka-pki.sh

config:
	@sed -e "s%SSLDIR%${SSLDIR}%g" \
		-e "s%SSHDIR%${SSHDIR}%g" \
		< config.def > config

install:
	@printf "installing hosaka-pki"
	@mkdir -p "${CONFIGDIR}" "${CONFIGDIR}/ssl" \
		"${CONFIGDIR}/ssh" "${CONFIGDIR}/util"
	@chown 0700 "${CONFIGDIR}/ssl" "${CONFIGDIR}/ssh"
	@cp -f config "${CONFIGDIR}
	@cp -f hosaka-pki.sh ${PREFIX}/bin/hosaka-pki
	@chown 755 ${PREFIX}/bin/hosaka-pki
	@printf "hosaka-pki installed into: ${CONFIGDIR}\\n"

clean:
	@printf "cleaning"

.PHONY:
	all clean install check