SIMPLE = newsflash.inc sitemap.txt \
docs/faq.inc docs/fips.inc \
news/changelog.inc news/changelog.txt \
+ news/cl101.txt news/cl102.txt \
+ news/openssl-1.0.1-notes.inc news/openssl-1.0.2-notes.inc \
+ news/openssl-1.1.0-notes.inc \
news/newsflash.inc \
news/vulnerabilities.inc \
source/.htaccess \
source/old/1.0.0/index.inc \
source/old/1.0.1/index.inc \
source/old/1.0.2/index.inc \
+ source/old/1.1.0/index.inc \
source/old/fips/index.inc \
all: $(SIMPLE) $(SRCLISTS) manmaster
-relupd: all
- if [ "`id -un`" != openssl ]; then \
- echo "You must run this as 'openssl'" ; \
- echo " sudo -u openssl -H make"; \
- exit 1; \
- fi
- cd $(CHECKOUTS) ; for dir in openssl* ; do \
- echo Updating $$dir ; ( cd $$dir ; git pull $(QUIET) ) ; \
- done
- git pull $(QUIET)
- $(MAKE) all manpages
-
-define makemanpges
+relupd: all manpages
+
+define makemanpages
./bin/mk-manpages $(1) $(2) docs
- ./bin/mk-filelist docs/man$(2)/apps '' '*.html' >docs/man$(2)/apps/index.inc
- ./bin/mk-filelist docs/man$(2)/crypto '' '*.html' >docs/man$(2)/crypto/index.inc
- ./bin/mk-filelist docs/man$(2)/ssl '' '*.html' >docs/man$(2)/ssl/index.inc
+ ./bin/mk-filelist -a docs/man$(2)/apps '' '*.html' >docs/man$(2)/apps/index.inc
+ ./bin/mk-filelist -a docs/man$(2)/crypto '' '*.html' >docs/man$(2)/crypto/index.inc
+ ./bin/mk-filelist -a docs/man$(2)/ssl '' '*.html' >docs/man$(2)/ssl/index.inc
endef
manpages: manmaster
- $(call makemanpages,$(CHECKOUTS)/openssl-1.0.2-stable 1.0.2)
- $(call makemanpages,$(CHECKOUTS)/openssl-1.0.1-stable 1.0.1)
- $(call makemanpages,$(CHECKOUTS)/openssl-1.0.0-stable 1.0.0)
- $(call makemanpages,$(CHECKOUTS)/openssl-0.9.8-stable 0.9.8)
+ $(call makemanpages,$(CHECKOUTS)/openssl-1.0.2-stable,1.0.2)
+ $(call makemanpages,$(CHECKOUTS)/openssl-1.0.1-stable,1.0.1)
manmaster:
- $(call makemanpges,$(CHECKOUTS)/openssl,master)
+ $(call makemanpages,$(CHECKOUTS)/openssl,master)
# Legacy targets
hack-source_htaccess: all
news/changelog.txt: $(SNAP)/CHANGES
@rm -f $@
cp $? $@
+news/cl101.txt: $(CHECKOUTS)/openssl-1.0.1-stable/CHANGES
+ @rm -f $@
+ cp $? $@
+news/cl102.txt: $(CHECKOUTS)/openssl-1.0.2-stable/CHANGES
+ @rm -f $@
+ cp $? $@
+
+news/openssl-1.0.1-notes.html: news/openssl-notes.html.in
+ @rm -f $@
+ sed -e 's|@VERSION@|1.0.1|g' < $< > $@
+news/openssl-1.0.2-notes.html: news/openssl-notes.html.in
+ @rm -f $@
+ sed -e 's|@VERSION@|1.0.2|g' < $< > $@
+news/openssl-1.1.0-notes.html: news/openssl-notes.html.in
+ @rm -f $@
+ sed -e 's|@VERSION@|1.1.0|g' < $< > $@
+news/openssl-1.0.1-notes.inc: $(CHECKOUTS)/openssl-1.0.1-stable/NEWS news/openssl-1.0.1-notes.html
+ @rm -f $@
+ ./bin/mk-notes 1.0.1 < $(CHECKOUTS)/openssl-1.0.1-stable/NEWS > $@
+news/openssl-1.0.2-notes.inc: $(CHECKOUTS)/openssl-1.0.2-stable/NEWS news/openssl-1.0.2-notes.html
+ @rm -f $@
+ ./bin/mk-notes 1.0.2 < $(CHECKOUTS)/openssl-1.0.2-stable/NEWS > $@
+news/openssl-1.1.0-notes.inc: $(CHECKOUTS)/openssl/NEWS news/openssl-1.1.0-notes.html
+ @rm -f $@
+ ./bin/mk-notes 1.1.0 < $(CHECKOUTS)/openssl/NEWS > $@
+
news/newsflash.inc: news/newsflash.txt
sed <$? >$@ \
-e '/^#/d' \
docs/faq.inc: docs/faq.txt
@rm -f $@
./bin/mk-faq <$? >$@
-docs/fips.inc:
+docs/fips.inc: $(wildcard docs/fips/*)
@rm -f $@
./bin/mk-filelist docs/fips fips/ '*' >$@
-source/.htaccess:
+source/.htaccess: $(wildcard source/openssl-*.tar.gz)
@rm -f @?
./bin/mk-latest source >$@
source/license.txt: $(SNAP)/LICENSE
@rm -f $@
cp $? $@
-source/index.inc:
+source/index.inc: $(wildcard $(RELEASEDIR)/openssl-*.tar.gz)
@rm -f $@
- ./bin/mk-filelist $(RELEASEDIR) '' 'openssl-*.tar.gz' >$@
+ ./bin/mk-filelist -a $(RELEASEDIR) '' 'openssl-*.tar.gz' >$@
-source/old/0.9.x/index.inc:
+source/old/0.9.x/index.inc: $(wildcard source/old/0.9.x/*.gz)
@rm -f $@
./bin/mk-filelist source/old/0.9.x '' '*.gz' >$@
-source/old/1.0.0/index.inc:
+source/old/1.0.0/index.inc: $(wildcard source/old/1.0.0/*.gz)
@rm -f $@
./bin/mk-filelist source/old/1.0.0 '' '*.gz' >$@
-source/old/1.0.1/index.inc:
+source/old/1.0.1/index.inc: $(wildcard source/old/1.0.1/*.gz)
@rm -f $@
./bin/mk-filelist source/old/1.0.1 '' '*.gz' >$@
-source/old/1.0.2/index.inc:
+source/old/1.0.2/index.inc: $(wildcard source/old/1.0.2/*.gz)
+ @rm -f $@
+ ./bin/mk-filelist source/old/1.0.2 '' '*.gz' >$@
+source/old/1.1.0/index.inc: $(wildcard source/old/1.1.0/*.gz)
@rm -f $@
./bin/mk-filelist source/old/1.0.2 '' '*.gz' >$@
-source/old/fips/index.inc:
+source/old/fips/index.inc: $(wildcard source/old/fips/*.gz)
@rm -f $@
./bin/mk-filelist source/old/fips '' '*.gz' >$@
+
+# Because these the indexes of old tarballs will inevitably be newer
+# than the tarballs that are moved into their respective directory,
+# we must declare them phony, or they will not be regenerated when
+# they should.
+.PHONY : \
+ source/old/1.0.1/index.inc source/old/1.0.2/index.inc \
+ source/old/fips/index.inc