-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
35 lines (28 loc) · 732 Bytes
/
Copy pathMakefile
File metadata and controls
35 lines (28 loc) · 732 Bytes
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
32
33
34
35
POSTFIX ?= usr/local
DESTDIR ?= /
RM ?= rm -rf
.PHONY: all
all: tiny rsad rsae rsak
rsad: rsad.c rsa.c
rsae: rsae.c rsa.c
rsak: rsak.c rsa.c
.PHONY: clean
clean:
$(RM) tiny
$(RM) rsae
$(RM) rsad
$(RM) rsak
.PHONY: install
install: tiny tiny.1 rsae rsad rsak
install -d $(DESTDIR)$(POSTFIX)/bin/
install -m 775 tiny $(DESTDIR)$(POSTFIX)/bin/
install -m 775 rsae $(DESTDIR)$(POSTFIX)/bin/
install -m 775 rsad $(DESTDIR)$(POSTFIX)/bin/
install -m 775 rsak $(DESTDIR)$(POSTFIX)/bin/
install -d $(DESTDIR)$(POSTFIX)/share/man/man1/
install -m 644 tiny.1 $(DESTDIR)$(POSTFIX)/share/man/man1/
.PHONY: uninstall
uninstall:
$(RM) $(DESTDIR)$(POSTFIX)/bin/tiny
README: tiny.1
mandoc -man -T ascii tiny.1 | col -b > README