Add "make relupd" to replace the old script.
[openssl-web.git] / Makefile
1 ##
2 ##  Makefile -- Top-level build procedure for www.openssl.org
3 ##
4
5 # Used to have a hack with a lockfile.
6 # Not needed since this is fast now.
7
8 SNAP=/v/openssl/checkouts/openssl
9 PODSHOME=$(SNAP)/doc
10
11 FORCE=#-f
12 QUIET=--quiet
13
14 DIRS= about docs news source support
15
16 all: simple manpages
17
18 simple: generated
19         wmk $(FORCE) -I $(SNAP) -a $(DIRS) index.wml
20
21 manpages:
22         sh ./run-pod2html.sh $(PODSHOME)
23
24 generated:
25         cp -f $(SNAP)/LICENSE source/license.inc
26         cp -f $(PODSHOME)/HOWTO/*.txt docs/HOWTO/.
27         perl run-changelog.pl <$(SNAP)/CHANGES >news/changelog.inc
28         perl run-faq.pl <$(SNAP)/FAQ >support/faq.inc
29         perl run-fundingfaq.pl < support/funding/support-faq.txt >support/funding/support-faq.inc
30         ( cd news && xsltproc vulnerabilities.xsl vulnerabilities.xml > vulnerabilities.wml )
31
32 # Update release notes (and other items, but relnotes is the use-case)
33 relupd:
34         ( cd $(SNAP)/.. ; for dir in openssl* ; do \
35                 echo Updating $$dir ; cd $$dir ; git pull $(QUIET) ; cd .. ; \
36                 done )
37         git pull $(QUIET)
38         $(MAKE) simple
39
40