2 ## Build procedure for www.openssl.org
5 CHECKOUTS = /var/cache/openssl/checkouts
7 SNAP = $(CHECKOUTS)/openssl
8 ## Where releases are found.
9 RELEASEDIR = /var/www/openssl/source
12 # All simple generated files.
13 SIMPLE = newsflash.inc sitemap.txt \
14 docs/faq.inc docs/fips.inc \
15 news/changelog.inc news/changelog.txt \
16 news/cl098.txt news/cl100.txt news/cl101.txt news/cl102.txt \
17 news/openssl-0.9.8-notes.inc news/openssl-1.0.0-notes.inc \
18 news/openssl-1.0.1-notes.inc news/openssl-1.0.2-notes.inc \
19 news/openssl-1.1.0-notes.inc \
21 news/vulnerabilities.inc \
26 source/old/0.9.x/index.inc \
27 source/old/1.0.0/index.inc \
28 source/old/1.0.1/index.inc \
29 source/old/1.0.2/index.inc \
30 source/old/fips/index.inc \
32 all: $(SIMPLE) $(SRCLISTS) manmaster
37 ./bin/mk-manpages $(1) $(2) docs
38 ./bin/mk-filelist -a docs/man$(2)/apps '' '*.html' >docs/man$(2)/apps/index.inc
39 ./bin/mk-filelist -a docs/man$(2)/crypto '' '*.html' >docs/man$(2)/crypto/index.inc
40 ./bin/mk-filelist -a docs/man$(2)/ssl '' '*.html' >docs/man$(2)/ssl/index.inc
43 $(call makemanpages,$(CHECKOUTS)/openssl-1.0.2-stable,1.0.2)
44 $(call makemanpages,$(CHECKOUTS)/openssl-1.0.1-stable,1.0.1)
45 $(call makemanpages,$(CHECKOUTS)/openssl-1.0.0-stable,1.0.0)
46 $(call makemanpages,$(CHECKOUTS)/openssl-0.9.8-stable,0.9.8)
49 $(call makemanpages,$(CHECKOUTS)/openssl,master)
52 hack-source_htaccess: all
58 rm -f $(SIMPLE) $(SRCLISTS)
60 newsflash.inc: news/newsflash.inc
67 news/changelog.inc: news/changelog.txt bin/mk-changelog
69 ./bin/mk-changelog <news/changelog.txt >$@
70 news/changelog.txt: $(SNAP)/CHANGES
73 news/cl098.txt: $(CHECKOUTS)/openssl-0.9.8-stable/CHANGES
76 news/cl100.txt: $(CHECKOUTS)/openssl-1.0.0-stable/CHANGES
79 news/cl101.txt: $(CHECKOUTS)/openssl-1.0.1-stable/CHANGES
82 news/cl102.txt: $(CHECKOUTS)/openssl-1.0.2-stable/CHANGES
86 news/openssl-0.9.8-notes.html: news/openssl-notes.html.in
88 sed -e 's|@VERSION@|0.9.8|g' < $< > $@
89 news/openssl-1.0.0-notes.html: news/openssl-notes.html.in
91 sed -e 's|@VERSION@|1.0.0|g' < $< > $@
92 news/openssl-1.0.1-notes.html: news/openssl-notes.html.in
94 sed -e 's|@VERSION@|1.0.1|g' < $< > $@
95 news/openssl-1.0.2-notes.html: news/openssl-notes.html.in
97 sed -e 's|@VERSION@|1.0.2|g' < $< > $@
98 news/openssl-1.1.0-notes.html: news/openssl-notes.html.in
100 sed -e 's|@VERSION@|1.1.0|g' < $< > $@
101 news/openssl-0.9.8-notes.inc: $(CHECKOUTS)/openssl-0.9.8-stable/NEWS news/openssl-0.9.8-notes.html
103 ./bin/mk-notes 0.9.8 < $(CHECKOUTS)/openssl-0.9.8-stable/NEWS > $@
104 news/openssl-1.0.0-notes.inc: $(CHECKOUTS)/openssl-1.0.0-stable/NEWS news/openssl-1.0.0-notes.html
106 ./bin/mk-notes 1.0.0 < $(CHECKOUTS)/openssl-1.0.0-stable/NEWS > $@
107 news/openssl-1.0.1-notes.inc: $(CHECKOUTS)/openssl-1.0.1-stable/NEWS news/openssl-1.0.1-notes.html
109 ./bin/mk-notes 1.0.1 < $(CHECKOUTS)/openssl-1.0.1-stable/NEWS > $@
110 news/openssl-1.0.2-notes.inc: $(CHECKOUTS)/openssl-1.0.2-stable/NEWS news/openssl-1.0.2-notes.html
112 ./bin/mk-notes 1.0.2 < $(CHECKOUTS)/openssl-1.0.2-stable/NEWS > $@
113 news/openssl-1.1.0-notes.inc: $(CHECKOUTS)/openssl/NEWS news/openssl-1.1.0-notes.html
115 ./bin/mk-notes 1.1.0 < $(CHECKOUTS)/openssl/NEWS > $@
117 news/newsflash.inc: news/newsflash.txt
120 -e 's@^@<tr><td class="d">@' \
121 -e 's@: @</td><td class="t">@' \
122 -e 's@$$@</td></tr>@'
123 news/vulnerabilities.inc: bin/vulnerabilities.xsl news/vulnerabilities.xml
125 xsltproc bin/vulnerabilities.xsl news/vulnerabilities.xml >$@
127 docs/faq.inc: docs/faq.txt
130 docs/fips.inc: $(wildcard docs/fips/*)
132 ./bin/mk-filelist docs/fips fips/ '*' >$@
134 source/.htaccess: $(wildcard source/openssl-*.tar.gz)
136 ./bin/mk-latest source >$@
137 source/license.txt: $(SNAP)/LICENSE
140 source/index.inc: $(wildcard $(RELEASEDIR)/openssl-*.tar.gz)
142 ./bin/mk-filelist -a $(RELEASEDIR) '' 'openssl-*.tar.gz' >$@
144 source/old/0.9.x/index.inc: $(wildcard source/old/0.9.x/*.gz)
146 ./bin/mk-filelist source/old/0.9.x '' '*.gz' >$@
147 source/old/1.0.0/index.inc: $(wildcard source/old/1.0.0/*.gz)
149 ./bin/mk-filelist source/old/1.0.0 '' '*.gz' >$@
150 source/old/1.0.1/index.inc: $(wildcard source/old/1.0.1/*.gz)
152 ./bin/mk-filelist source/old/1.0.1 '' '*.gz' >$@
153 source/old/1.0.2/index.inc: $(wildcard source/old/1.0.2/*.gz)
155 ./bin/mk-filelist source/old/1.0.2 '' '*.gz' >$@
156 source/old/fips/index.inc: $(wildcard source/old/fips/*.gz)
158 ./bin/mk-filelist source/old/fips '' '*.gz' >$@
160 # Because these the indexes of old tarballs will inevitably be newer
161 # than the tarballs that are moved into their respective directory,
162 # we must declare them phony, or they will not be regenerated when
164 .PHONY : source/old/0.9.x/index.inc source/old/1.0.0/index.inc \
165 source/old/1.0.1/index.inc source/old/1.0.2/index.inc \
166 source/old/fips/index.inc