security/nss/doc/Makefile

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/security/nss/doc/Makefile	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,82 @@
     1.4 +#! gmake
     1.5 +#
     1.6 +# Creates man pages for the NSS security tools
     1.7 +#
     1.8 +# pk12util, certutil, modutil, ssltap, 
     1.9 +# signtool, signver, cmsutil, crlutil,  
    1.10 +# derdump, pp, vfychain, vfyserv
    1.11 +#
    1.12 +
    1.13 +.SUFFIXES: .html .txt .1 .xml
    1.14 +
    1.15 +COMPILE.1 = xmlto -o nroff man
    1.16 +COMPILE.html = xmlto -o html html
    1.17 +
    1.18 +# the name of the tar ball
    1.19 +name = nss-man
    1.20 +date = `date +"%Y%m%d"`
    1.21 +
    1.22 +all: prepare all-man all-html
    1.23 +
    1.24 +prepare: date-and-version
    1.25 +	mkdir -p html
    1.26 +	mkdir -p nroff
    1.27 +	
    1.28 +clean:
    1.29 +	rm -f date.xml version.xml *.tar.bz2
    1.30 +	rm -f html/*.proc
    1.31 +	rm -fr $(name) ascii
    1.32 +
    1.33 +date-and-version: date.xml version.xml
    1.34 +
    1.35 +date.xml:
    1.36 +	date +"%e %B %Y" | tr -d '\n' > $@
    1.37 +
    1.38 +version.xml:
    1.39 +	echo -n ${VERSION} > $@
    1.40 +
    1.41 +.PHONY : $(MANPAGES)
    1.42 +.PHONY : $(HTMLPAGES)
    1.43 +.PHONY : $(TXTPAGES)
    1.44 +
    1.45 +#------------------------------------------
    1.46 +# Package a tar ball for building in fedora
    1.47 +# Include the makefile and .xml files only
    1.48 +# man pages will be created at build time
    1.49 +#------------------------------------------
    1.50 +
    1.51 +tarball:
    1.52 +	rm -rf $(name); \
    1.53 +	mkdir -p $(name)/nroff; \
    1.54 +	cp Makefile $(name); \
    1.55 +	cp *.xml $(name); \
    1.56 +	tar cvjf $(name)-$(date).tar.bz2 $(name)
    1.57 +
    1.58 +#--------------------------------------------------------
    1.59 +# manpages
    1.60 +#--------------------------------------------------------
    1.61 +
    1.62 +nroff/%.1 : %.xml
    1.63 +	$(COMPILE.1) $<
    1.64 +	
    1.65 +MANPAGES = \
    1.66 +nroff/certutil.1 nroff/cmsutil.1 nroff/crlutil.1 nroff/pk12util.1 \
    1.67 +nroff/modutil.1 nroff/ssltap.1 nroff/derdump.1 nroff/signtool.1 nroff/signver.1 \
    1.68 +nroff/pp.1 nroff/vfychain.1 nroff/vfyserv.1
    1.69 +
    1.70 +all-man: prepare $(MANPAGES)
    1.71 +
    1.72 +#--------------------------------------------------------
    1.73 +# html pages
    1.74 +#--------------------------------------------------------
    1.75 +
    1.76 +html/%.html : %.xml
    1.77 +	$(COMPILE.html) $<
    1.78 +	mv html/index.html $@
    1.79 +
    1.80 +HTMLPAGES = \
    1.81 +html/certutil.html html/cmsutil.html html/crlutil.html html/pk12util.html html/modutil.html \
    1.82 +html/ssltap.html html/derdump.html html/signtool.html html/signver.html html/pp.html \
    1.83 +html/vfychain.html html/vfyserv.html
    1.84 +
    1.85 +all-html: prepare $(HTMLPAGES)

mercurial