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 community/committers.inc \
15 docs/faq.inc docs/fips.inc \
16 news/changelog.inc news/changelog.txt \
17 news/cl102.txt news/cl110.txt \
18 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/1.1.0/index.inc \
31 source/old/fips/index.inc \
36 suball: $(SIMPLE) $(SRCLISTS) manmaster
38 relupd: suball manpages sitemap
41 rm -f $(SIMPLE) $(SRCLISTS)
44 hack-source_htaccess: all
50 ./bin/mk-manpages $(1) $(2) docs
51 ./bin/mk-filelist -a docs/man$(2)/apps '' '*.html' >docs/man$(2)/apps/index.inc
52 ./bin/mk-filelist -a docs/man$(2)/crypto '' '*.html' >docs/man$(2)/crypto/index.inc
53 ./bin/mk-filelist -a docs/man$(2)/ssl '' '*.html' >docs/man$(2)/ssl/index.inc
56 $(call makemanpages,$(CHECKOUTS)/openssl-1.1.0-stable,1.1.0)
57 $(call makemanpages,$(CHECKOUTS)/openssl-1.0.2-stable,1.0.2)
60 ./bin/mk-manmaster $(CHECKOUTS)/openssl master docs
61 ./bin/mk-filelist -a docs/manmaster/man1 '' '*.html' >docs/manmaster/man1/index.inc
62 ./bin/mk-filelist -a docs/manmaster/man3 '' '*.html' >docs/manmaster/man3/index.inc
63 ./bin/mk-filelist -a docs/manmaster/man5 '' '*.html' >docs/manmaster/man5/index.inc
64 ./bin/mk-filelist -a docs/manmaster/man7 '' '*.html' >docs/manmaster/man7/index.inc
66 ## $(SIMPLE) -- SIMPLE GENERATED FILES
67 newsflash.inc: news/newsflash.inc
72 ./bin/mk-sitemap > sitemap.txt
74 community/committers.inc:
76 wget -q https://api.openssl.org/0/Group/commit/Members |
77 ./bin/mk-committers >$@
79 docs/faq.inc: docs/faq.txt bin/mk-faq
82 docs/fips.inc: $(wildcard docs/fips/*) bin/mk-filelist
84 ./bin/mk-filelist docs/fips fips/ '*' >$@
86 news/changelog.inc: news/changelog.txt bin/mk-changelog
88 ./bin/mk-changelog <news/changelog.txt >$@
89 news/changelog.txt: $(SNAP)/CHANGES
92 news/cl102.txt: $(CHECKOUTS)/openssl-1.0.2-stable/CHANGES
95 news/cl110.txt: $(CHECKOUTS)/openssl-1.1.0-stable/CHANGES
98 news/openssl-1.0.2-notes.html: news/openssl-notes.html.in
100 sed -e 's|@VERSION@|1.0.2|g' < $< > $@
101 news/openssl-1.1.0-notes.html: news/openssl-notes.html.in
103 sed -e 's|@VERSION@|1.1.0|g' < $< > $@
104 news/openssl-1.0.2-notes.inc: $(CHECKOUTS)/openssl-1.0.2-stable/NEWS news/openssl-1.0.2-notes.html bin/mk-notes
106 ./bin/mk-notes 1.0.2 < $(CHECKOUTS)/openssl-1.0.2-stable/NEWS > $@
107 news/openssl-1.1.0-notes.inc: $(CHECKOUTS)/openssl-1.1.0-stable/NEWS news/openssl-1.1.0-notes.html bin/mk-notes
109 ./bin/mk-notes 1.1.0 < $(CHECKOUTS)/openssl-1.1.0-stable/NEWS > $@
110 news/newsflash.inc: news/newsflash.txt
113 -e 's@^@<tr><td class="d">@' \
114 -e 's@: @</td><td class="t">@' \
115 -e 's@$$@</td></tr>@'
116 news/vulnerabilities.inc: bin/vulnerabilities.xsl news/vulnerabilities.xml
118 xsltproc bin/vulnerabilities.xsl news/vulnerabilities.xml >$@
120 source/.htaccess: $(wildcard source/openssl-*.tar.gz) bin/mk-latest
122 ./bin/mk-latest source >$@
123 source/license.txt: $(SNAP)/LICENSE
126 source/index.inc: $(wildcard $(RELEASEDIR)/openssl-*.tar.gz) bin/mk-filelist
128 ./bin/mk-filelist $(RELEASEDIR) '' 'openssl-*.tar.gz' >$@
130 ## $(SRCLISTS) -- LISTS OF SOURCES
131 source/old/0.9.x/index.inc: $(wildcard source/old/0.9.x/*.gz) bin/mk-filelist
133 ./bin/mk-filelist source/old/0.9.x '' '*.gz' >$@
134 source/old/1.0.0/index.inc: $(wildcard source/old/1.0.0/*.gz) bin/mk-filelist
136 ./bin/mk-filelist source/old/1.0.0 '' '*.gz' >$@
137 source/old/1.0.1/index.inc: $(wildcard source/old/1.0.1/*.gz) bin/mk-filelist
139 ./bin/mk-filelist source/old/1.0.1 '' '*.gz' >$@
140 source/old/1.0.2/index.inc: $(wildcard source/old/1.0.2/*.gz) bin/mk-filelist
142 ./bin/mk-filelist source/old/1.0.2 '' '*.gz' >$@
143 source/old/1.1.0/index.inc: $(wildcard source/old/1.1.0/*.gz) bin/mk-filelist
145 ./bin/mk-filelist source/old/1.1.0 '' '*.gz' >$@
146 source/old/fips/index.inc: $(wildcard source/old/fips/*.gz) bin/mk-filelist
148 ./bin/mk-filelist source/old/fips '' '*.gz' >$@
150 # Because these the indexes of old tarballs will inevitably be newer
151 # than the tarballs that are moved into their respective directory,
152 # we must declare them phony, or they will not be regenerated when
155 source/old/1.0.1/index.inc source/old/1.0.2/index.inc \
156 source/old/1.1.0/index.inc source/old/fips/index.inc