security/nss/doc/Makefile

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

michael@0 1 #! gmake
michael@0 2 #
michael@0 3 # Creates man pages for the NSS security tools
michael@0 4 #
michael@0 5 # pk12util, certutil, modutil, ssltap,
michael@0 6 # signtool, signver, cmsutil, crlutil,
michael@0 7 # derdump, pp, vfychain, vfyserv
michael@0 8 #
michael@0 9
michael@0 10 .SUFFIXES: .html .txt .1 .xml
michael@0 11
michael@0 12 COMPILE.1 = xmlto -o nroff man
michael@0 13 COMPILE.html = xmlto -o html html
michael@0 14
michael@0 15 # the name of the tar ball
michael@0 16 name = nss-man
michael@0 17 date = `date +"%Y%m%d"`
michael@0 18
michael@0 19 all: prepare all-man all-html
michael@0 20
michael@0 21 prepare: date-and-version
michael@0 22 mkdir -p html
michael@0 23 mkdir -p nroff
michael@0 24
michael@0 25 clean:
michael@0 26 rm -f date.xml version.xml *.tar.bz2
michael@0 27 rm -f html/*.proc
michael@0 28 rm -fr $(name) ascii
michael@0 29
michael@0 30 date-and-version: date.xml version.xml
michael@0 31
michael@0 32 date.xml:
michael@0 33 date +"%e %B %Y" | tr -d '\n' > $@
michael@0 34
michael@0 35 version.xml:
michael@0 36 echo -n ${VERSION} > $@
michael@0 37
michael@0 38 .PHONY : $(MANPAGES)
michael@0 39 .PHONY : $(HTMLPAGES)
michael@0 40 .PHONY : $(TXTPAGES)
michael@0 41
michael@0 42 #------------------------------------------
michael@0 43 # Package a tar ball for building in fedora
michael@0 44 # Include the makefile and .xml files only
michael@0 45 # man pages will be created at build time
michael@0 46 #------------------------------------------
michael@0 47
michael@0 48 tarball:
michael@0 49 rm -rf $(name); \
michael@0 50 mkdir -p $(name)/nroff; \
michael@0 51 cp Makefile $(name); \
michael@0 52 cp *.xml $(name); \
michael@0 53 tar cvjf $(name)-$(date).tar.bz2 $(name)
michael@0 54
michael@0 55 #--------------------------------------------------------
michael@0 56 # manpages
michael@0 57 #--------------------------------------------------------
michael@0 58
michael@0 59 nroff/%.1 : %.xml
michael@0 60 $(COMPILE.1) $<
michael@0 61
michael@0 62 MANPAGES = \
michael@0 63 nroff/certutil.1 nroff/cmsutil.1 nroff/crlutil.1 nroff/pk12util.1 \
michael@0 64 nroff/modutil.1 nroff/ssltap.1 nroff/derdump.1 nroff/signtool.1 nroff/signver.1 \
michael@0 65 nroff/pp.1 nroff/vfychain.1 nroff/vfyserv.1
michael@0 66
michael@0 67 all-man: prepare $(MANPAGES)
michael@0 68
michael@0 69 #--------------------------------------------------------
michael@0 70 # html pages
michael@0 71 #--------------------------------------------------------
michael@0 72
michael@0 73 html/%.html : %.xml
michael@0 74 $(COMPILE.html) $<
michael@0 75 mv html/index.html $@
michael@0 76
michael@0 77 HTMLPAGES = \
michael@0 78 html/certutil.html html/cmsutil.html html/crlutil.html html/pk12util.html html/modutil.html \
michael@0 79 html/ssltap.html html/derdump.html html/signtool.html html/signver.html html/pp.html \
michael@0 80 html/vfychain.html html/vfyserv.html
michael@0 81
michael@0 82 all-html: prepare $(HTMLPAGES)

mercurial