-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
52 lines (39 loc) · 1.12 KB
/
Makefile
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# for GNU make only!
# Makefile for Japanese OpenSSH manpage
# by Yusuke Shinyama <yusuke at cs . nyu . edu>
PACKAGE=openssh-jman
VERSION=7.3p1
VERSION2=730p1
RM=rm -f
CP=cp -f
TAR=tar
PYTHON=python2
ROFF2HTML=$(PYTHON) roff2html.py -s $(VERSION)
DISTNAME=$(PACKAGE)-$(VERSION2)
DISTFILE=/tmp/$(DISTNAME).tar.gz
#
.SUFFIXES: .0 .1 .2 .3 .4 .5 .6 .7 .8 .9 .html
#
SRCS=scp.1 sftp-server.8 sftp.1 ssh-add.1 ssh-agent.1 ssh-keygen.1 ssh-keyscan.1 \
ssh.1 sshd.8 ssh-keysign.8 ssh_config.5 sshd_config.5 ssh-pkcs11-helper.8
HTML=scp.html sftp-server.html sftp.html ssh-add.html \
ssh-agent.html ssh-keygen.html ssh-keyscan.html ssh.html \
sshd.html ssh-keysign.html ssh_config.html sshd_config.html ssh-pkcs11-helper.html
all: $(HTML)
clean:
-$(RM) $(HTML)
-$(RM) $(DISTFILE)
.1.html:
$(ROFF2HTML) $< > $@
.5.html:
$(ROFF2HTML) $< > $@
.8.html:
$(ROFF2HTML) $< > $@
# Maintainance:
archive: $(DISTFILE)
$(DISTFILE): clean
$(TAR) zcf $(DISTFILE) $(SRCS) roff2html.py Makefile README.txt
WEBDIR=../../github.io/openssh-jman/
install: $(DISTFILE) $(HTML)
$(CP) $(HTML) $(DISTFILE) $(WEBDIR)
$(CP) index.html $(WEBDIR)/index.html