2 ## Build procedure for www.openssl.org
5 CHECKOUTS = /var/cache/openssl/checkouts/openssl
7 SNAP = $(CHECKOUST)/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 \
17 news/vulnerabilities.inc \
22 source/old/0.9.x/index.inc \
23 source/old/1.0.0/index.inc \
24 source/old/1.0.1/index.inc \
25 source/old/1.0.2/index.inc \
26 source/old/fips/index.inc \
28 all: $(SIMPLE) $(SRCLISTS)
31 if [ "`id -un`" != openssl ]; then \
32 echo "You must run this as 'openssl'" ; \
33 echo " sudo -u openssl -H make"; \
36 cd $(CHECKOUTS) ; for dir in openssl* ; do \
37 echo Updating $$dir ; ( cd $$dir ; git pull $(QUIET) ) ; \
43 ./bin/mk-manpages $(CHECKOUTS)/master master doc
44 #./bin/mk-manpages $(CHECKOUTS)/openssl-1.0.2-stable 1.0.2 doc
45 #./bin/mk-manpages $(CHECKOUTS)/openssl-1.0.1-stable 1.0.1 doc
46 #./bin/mk-manpages $(CHECKOUTS)/openssl-1.0.0-stable 1.0.0 doc
47 #./bin/mk-manpages $(CHECKOUTS)/openssl-0.9.8-stable 0.9.8 doc
50 hack-source_htaccess: all
56 rm -f $(SIMPLE) $(SRCLISTS)
58 newsflash.inc: news/newsflash.inc
65 news/changelog.inc: news/changelog.txt bin/mk-changelog
67 ./bin/mk-changelog <news/changelog.txt >$@
68 news/changelog.txt: $(SNAP)/CHANGES
71 news/newsflash.inc: news/newsflash.txt
74 -e 's@^@<tr><td class="d">@' \
75 -e 's@: @</td><td class="t">@' \
77 news/vulnerabilities.inc: bin/vulnerabilities.xsl news/vulnerabilities.xml
79 xsltproc bin/vulnerabilities.xsl news/vulnerabilities.xml >$@
81 docs/faq.inc: docs/faq.txt
86 ./bin/mk-filelist docs/fips fips/ '*' >$@
90 ./bin/mk-latest source >$@
91 source/license.txt: $(SNAP)/LICENSE
96 ./bin/mk-filelist $(RELEASEDIR) '' 'openssl-*.tar.gz' >$@
98 source/old/0.9.x/index.inc:
100 ./bin/mk-filelist source/old/0.9.x '' '*.gz' >$@
101 source/old/1.0.0/index.inc:
103 ./bin/mk-filelist source/old/1.0.0 '' '*.gz' >$@
104 source/old/1.0.1/index.inc:
106 ./bin/mk-filelist source/old/1.0.1 '' '*.gz' >$@
107 source/old/1.0.2/index.inc:
109 ./bin/mk-filelist source/old/1.0.2 '' '*.gz' >$@
110 source/old/fips/index.inc:
112 ./bin/mk-filelist source/old/fips '' '*.gz' >$@