Blame


1 cdaf1fc5 2022-10-20 op VERSION= 0.2
2 f9880dd5 2022-10-20 op DISTNAME= plass-${VERSION}
3 ee89c9f1 2022-12-03 op PROGS= plass pwg totp
4 ee89c9f1 2022-12-03 op MANS= plass.1 pwg.1 totp.1
5 f9880dd5 2022-10-20 op EXTRA= README.md Makefile totp.c
6 5cdf5adc 2022-05-08 op
7 f9880dd5 2022-10-20 op CFLAGS= -Wall -Wextra
8 f9880dd5 2022-10-20 op LDFLAGS= -lcrypto
9 f9880dd5 2022-10-20 op
10 70db4263 2022-06-29 op INSTALL= install
11 1f0d29ac 2022-10-01 op INSTALL_DATA= ${INSTALL} -m 0644
12 70db4263 2022-06-29 op INSTALL_MAN= ${INSTALL} -m 0444
13 70db4263 2022-06-29 op INSTALL_PROGRAM=${INSTALL} -m 0555
14 5cdf5adc 2022-05-08 op
15 70db4263 2022-06-29 op PREFIX= /usr/local
16 fef65d3c 2022-10-01 op BINDIR= ${PREFIX}/bin
17 70db4263 2022-06-29 op MANDIR= ${PREFIX}/man
18 70db4263 2022-06-29 op
19 24534853 2022-10-20 op .PHONY: all clean dist install-local install lint mans
20 70db4263 2022-06-29 op
21 f9880dd5 2022-10-20 op all: ${PROGS}
22 5cdf5adc 2022-05-08 op
23 f9880dd5 2022-10-20 op clean:
24 f9880dd5 2022-10-20 op rm -f *.o totp
25 03eca996 2022-06-29 op
26 f9880dd5 2022-10-20 op totp: totp.o
27 f9880dd5 2022-10-20 op ${CC} -o $@ totp.o ${LDFLAGS}
28 f9880dd5 2022-10-20 op
29 f9880dd5 2022-10-20 op install-local: ${PROGS}
30 f9880dd5 2022-10-20 op ${INSTALL_PROGRAM} ${PROGS} ${HOME}/bin
31 f9880dd5 2022-10-20 op
32 f9880dd5 2022-10-20 op install: ${PROGS}
33 fef65d3c 2022-10-01 op mkdir -p ${DESTDIR}${BINDIR}
34 fef65d3c 2022-10-01 op mkdir -p ${DESTDIR}${MANDIR}/man1
35 f9880dd5 2022-10-20 op ${INSTALL_PROGRAM} ${PROGS} ${DESTDIR}${BINDIR}
36 f9880dd5 2022-10-20 op ${INSTALL_MAN} ${MANS} ${DESTDIR}${MANDIR}/man1/
37 70db4263 2022-06-29 op
38 70db4263 2022-06-29 op lint:
39 8ee9129d 2022-12-03 op man -Tlint -Wstyle -l ${MANS}
40 70db4263 2022-06-29 op
41 4aaaa57b 2022-10-01 op plass.1.html: plass.1
42 4aaaa57b 2022-10-01 op man -Thtml -Ostyle=mandoc.css -l plass.1 > $@
43 4aaaa57b 2022-10-01 op
44 cc363e8f 2022-12-17 op pwg.1.html: pwg.1
45 cc363e8f 2022-12-17 op man -Thtml -Ostyle=mandoc.css -l pwg.1 > $@
46 cc363e8f 2022-12-17 op
47 24534853 2022-10-20 op totp.1.html: totp.1
48 24534853 2022-10-20 op man -Thtml -Ostyle=mandoc.css -l totp.1 > $@
49 24534853 2022-10-20 op
50 cc363e8f 2022-12-17 op mans: plass.1.html pwg.1.html totp.1.html
51 24534853 2022-10-20 op
52 1f0d29ac 2022-10-01 op dist: ${DISTNAME}.sha256
53 1f0d29ac 2022-10-01 op
54 1f0d29ac 2022-10-01 op ${DISTNAME}.sha256: ${DISTNAME}.tar.gz
55 1f0d29ac 2022-10-01 op sha256 ${DISTNAME}.tar.gz > $@
56 1f0d29ac 2022-10-01 op
57 f9880dd5 2022-10-20 op ${DISTNAME}.tar.gz: ${PROGS} ${MANS} ${EXTRA}
58 1f0d29ac 2022-10-01 op mkdir -p .dist/${DISTNAME}
59 f9880dd5 2022-10-20 op ${INSTALL_DATA} ${MANS} ${EXTRA} .dist/${DISTNAME}
60 7ca45daa 2022-12-17 op ${INSTALL_PROGRAM} plass pwg .dist/${DISTNAME}
61 1f0d29ac 2022-10-01 op cd .dist && tar zcf ../$@ ${DISTNAME}
62 1f0d29ac 2022-10-01 op rm -rf .dist