-
Notifications
You must be signed in to change notification settings - Fork 10
/
Makefile
143 lines (102 loc) · 3.09 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
ROOT=.
MAINPARTS= $(ROOT)/doctype.t $(ROOT)/body.t $(ROOT)/footer.t \
$(ROOT)/setup.t menu.t $(ROOT)/css.t
ACTION=@echo preprocessing $@; rm -f $@; fcpp -WWW -Uunix -H -I$(ROOT) -C -V -LL $< $@;
TXT2PLAIN = perl txt2plain.pl
SRCDIR=git-source
MARKDOWN=markdown
CVES = \
adv_20150311.html \
adv_20160223.html \
CVE-2019-3855.html \
CVE-2019-3856.html \
CVE-2019-3857.html \
CVE-2019-3858.html \
CVE-2019-3859.html \
CVE-2019-3860.html \
CVE-2019-3861.html \
CVE-2019-3862.html \
CVE-2019-3863.html
all: index.html mailhead.html cvs.html docs.html mailtop.html mailbot.html \
indextop.html indexbot.html menu.html changes.html source.html \
libssh2-vs-libssh.html license.html security.html $(CVES)
cd git-source && git pull
cd examples && make
index.html: index.t $(MAINPARTS)
$(ACTION)
libssh2-vs-libssh.html: libssh2-vs-libssh.t $(MAINPARTS)
$(ACTION)
security.html: security.t $(MAINPARTS) security.gen
$(ACTION)
security.gen: $(SRCDIR)/docs/SECURITY.md
$(MARKDOWN) $< >$@
changes.html: changes.t $(MAINPARTS)
$(ACTION)
license.html: license.t $(MAINPARTS) license.txt
$(ACTION)
license.txt: $(SRCDIR)/COPYING
$(TXT2PLAIN) < $< > $@
docs.html: docs.t $(MAINPARTS) docmenu.t
$(ACTION)
cvs.html: cvs.t $(MAINPARTS)
$(ACTION)
source.html: source.t $(MAINPARTS)
$(ACTION)
menu.html: menu.t $(MAINPARTS)
$(ACTION)
mailhead.html: mailhead.t $(MAINPARTS)
$(ACTION)
mailtop.html: mailtop.t $(MAINPARTS)
$(ACTION)
mailbot.html: mailbot.t $(MAINPARTS)
$(ACTION)
indextop.html: indextop.t $(MAINPARTS)
$(ACTION)
indexbot.html: indexbot.t $(MAINPARTS)
$(ACTION)
adv_20150311.html: adv_20150311.t adv_20150311.gen $(MAINPARTS)
$(ACTION)
adv_20150311.gen: adv_20150311.txt
$(MARKDOWN) $< >$@
adv_20160223.html: adv_20160223.t adv_20160223.gen $(MAINPARTS)
$(ACTION)
adv_20160223.gen: adv_20160223.txt
$(MARKDOWN) $< >$@
CVE-2019-3855.html: CVE-2019-3855.t CVE-2019-3855.gen $(MAINPARTS)
$(ACTION)
CVE-2019-3855.gen: CVE-2019-3855.md
$(MARKDOWN) $< >$@
CVE-2019-3856.html: CVE-2019-3856.t CVE-2019-3856.gen $(MAINPARTS)
$(ACTION)
CVE-2019-3856.gen: CVE-2019-3856.md
$(MARKDOWN) $< >$@
CVE-2019-3857.html: CVE-2019-3857.t CVE-2019-3857.gen $(MAINPARTS)
$(ACTION)
CVE-2019-3857.gen: CVE-2019-3857.md
$(MARKDOWN) $< >$@
CVE-2019-3858.html: CVE-2019-3858.t CVE-2019-3858.gen $(MAINPARTS)
$(ACTION)
CVE-2019-3858.gen: CVE-2019-3858.md
$(MARKDOWN) $< >$@
CVE-2019-3859.html: CVE-2019-3859.t CVE-2019-3859.gen $(MAINPARTS)
$(ACTION)
CVE-2019-3859.gen: CVE-2019-3859.md
$(MARKDOWN) $< >$@
CVE-2019-3860.html: CVE-2019-3860.t CVE-2019-3860.gen $(MAINPARTS)
$(ACTION)
CVE-2019-3860.gen: CVE-2019-3860.md
$(MARKDOWN) $< >$@
CVE-2019-3861.html: CVE-2019-3861.t CVE-2019-3861.gen $(MAINPARTS)
$(ACTION)
CVE-2019-3861.gen: CVE-2019-3861.md
$(MARKDOWN) $< >$@
CVE-2019-3862.html: CVE-2019-3862.t CVE-2019-3862.gen $(MAINPARTS)
$(ACTION)
CVE-2019-3862.gen: CVE-2019-3862.md
$(MARKDOWN) $< >$@
CVE-2019-3863.html: CVE-2019-3863.t CVE-2019-3863.gen $(MAINPARTS)
$(ACTION)
CVE-2019-3863.gen: CVE-2019-3863.md
$(MARKDOWN) $< >$@
clean:
find . -name "*~" -exec rm {} \;