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/cl101.txt news/cl102.txt \
17 news/openssl-1.0.1-notes.inc news/openssl-1.0.2-notes.inc \
18 news/openssl-1.1.0-notes.inc \
20 news/vulnerabilities.inc \
25 source/old/0.9.x/index.inc \
26 source/old/1.0.0/index.inc \
27 source/old/1.0.1/index.inc \
28 source/old/1.0.2/index.inc \
29 source/old/1.1.0/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.1.0-stable,1.1.0)
44 $(call makemanpages,$(CHECKOUTS)/openssl-1.0.2-stable,1.0.2)
45 $(call makemanpages,$(CHECKOUTS)/openssl-1.0.1-stable,1.0.1)
48 $(call makemanpages,$(CHECKOUTS)/openssl,master)
51 hack-source_htaccess: all
57 rm -f $(SIMPLE) $(SRCLISTS)
59 newsflash.inc: news/newsflash.inc
62 sitemap.txt: bin/mk-sitemap
66 news/changelog.inc: news/changelog.txt bin/mk-changelog
68 ./bin/mk-changelog <news/changelog.txt >$@
69 news/changelog.txt: $(SNAP)/CHANGES
72 news/cl101.txt: $(CHECKOUTS)/openssl-1.0.1-stable/CHANGES
75 news/cl102.txt: $(CHECKOUTS)/openssl-1.0.2-stable/CHANGES
78 news/cl110.txt: $(CHECKOUTS)/openssl-1.1.0-stable/CHANGES
82 news/openssl-1.0.1-notes.html: news/openssl-notes.html.in
84 sed -e 's|@VERSION@|1.0.1|g' < $< > $@
85 news/openssl-1.0.2-notes.html: news/openssl-notes.html.in
87 sed -e 's|@VERSION@|1.0.2|g' < $< > $@
88 news/openssl-1.1.0-notes.html: news/openssl-notes.html.in
90 sed -e 's|@VERSION@|1.1.0|g' < $< > $@
91 news/openssl-1.0.1-notes.inc: $(CHECKOUTS)/openssl-1.0.1-stable/NEWS news/openssl-1.0.1-notes.html bin/mk-notes
93 ./bin/mk-notes 1.0.1 < $(CHECKOUTS)/openssl-1.0.1-stable/NEWS > $@
94 news/openssl-1.0.2-notes.inc: $(CHECKOUTS)/openssl-1.0.2-stable/NEWS news/openssl-1.0.2-notes.html bin/mk-notes
96 ./bin/mk-notes 1.0.2 < $(CHECKOUTS)/openssl-1.0.2-stable/NEWS > $@
97 news/openssl-1.1.0-notes.inc: $(CHECKOUTS)/openssl-1.1.0-stable/NEWS news/openssl-1.1.0-notes.html bin/mk-notes
99 ./bin/mk-notes 1.1.0 < $(CHECKOUTS)/openssl-1.1.0-stable/NEWS > $@
101 news/newsflash.inc: news/newsflash.txt
104 -e 's@^@<tr><td class="d">@' \
105 -e 's@: @</td><td class="t">@' \
106 -e 's@$$@</td></tr>@'
107 news/vulnerabilities.inc: bin/vulnerabilities.xsl news/vulnerabilities.xml
109 xsltproc bin/vulnerabilities.xsl news/vulnerabilities.xml >$@
111 docs/faq.inc: docs/faq.txt bin/mk-faq
114 docs/fips.inc: $(wildcard docs/fips/*) bin/mk-filelist
116 ./bin/mk-filelist docs/fips fips/ '*' >$@
118 source/.htaccess: $(wildcard source/openssl-*.tar.gz) bin/mk-latest
120 ./bin/mk-latest source >$@
121 source/license.txt: $(SNAP)/LICENSE
124 source/index.inc: $(wildcard $(RELEASEDIR)/openssl-*.tar.gz) bin/mk-filelist
126 ./bin/mk-filelist -a $(RELEASEDIR) '' 'openssl-*.tar.gz' >$@
128 source/old/0.9.x/index.inc: $(wildcard source/old/0.9.x/*.gz) bin/mk-filelist
130 ./bin/mk-filelist source/old/0.9.x '' '*.gz' >$@
131 source/old/1.0.0/index.inc: $(wildcard source/old/1.0.0/*.gz) bin/mk-filelist
133 ./bin/mk-filelist source/old/1.0.0 '' '*.gz' >$@
134 source/old/1.0.1/index.inc: $(wildcard source/old/1.0.1/*.gz) bin/mk-filelist
136 ./bin/mk-filelist source/old/1.0.1 '' '*.gz' >$@
137 source/old/1.0.2/index.inc: $(wildcard source/old/1.0.2/*.gz) bin/mk-filelist
139 ./bin/mk-filelist source/old/1.0.2 '' '*.gz' >$@
140 source/old/1.1.0/index.inc: $(wildcard source/old/1.1.0/*.gz) bin/mk-filelist
142 ./bin/mk-filelist source/old/1.1.0 '' '*.gz' >$@
143 source/old/fips/index.inc: $(wildcard source/old/fips/*.gz) bin/mk-filelist
145 ./bin/mk-filelist source/old/fips '' '*.gz' >$@
147 # Because these the indexes of old tarballs will inevitably be newer
148 # than the tarballs that are moved into their respective directory,
149 # we must declare them phony, or they will not be regenerated when
152 source/old/1.0.1/index.inc source/old/1.0.2/index.inc \
153 source/old/1.1.0/index.inc source/old/fips/index.inc