summaryrefslogtreecommitdiff
path: root/man/Makefile.am
blob: 3b03a96e4a2a19b2a9204c38932d1f93e435d030 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
NULL =

man_MANS = \
	xmlsec1.1 \
	xmlsec1-config.1 \
	$(NULL)

EXTRA_DIST = \
	xmlsec1.1 \
	xmlsec1-config.1 \
	$(NULL)

XMLSEC_PROGRAM=$(top_builddir)/apps/xmlsec1
XMLSEC_CONFIG_PROGRAM=$(top_builddir)/xmlsec1-config
XMLSEC_HTML=$(top_builddir)/docs/xmlsec-man.html

all:

docs: man-clean man $(XMLSEC_HTML)
	

man-clean:
	@rm -rf $(man_MANS)

man: $(man_MANS) 

$(XMLSEC_HTML): xmlsec1.1
	man2html xmlsec1.1 | \
		  grep -v '^Content-type: text/html' | \
		  tr "[:cntrl:]" " " > \
		  $(XMLSEC_HTML)

xmlsec1.1:
	@rm -f xmlsec1.1
	help2man --help-option=--help-all --no-info \
		  --name="sign, verify, encrypt and decrypt XML documents" \
		  --version-option=--version \
		  $(XMLSEC_PROGRAM) > xmlsec1.1

xmlsec1-config.1:
	@chmod 766 $(XMLSEC_CONFIG_PROGRAM)
	@rm -f xmlsec1-config.1
	help2man --help-option=--help --no-info \
		  --name="detail installed version of xmlsec library" \
		  --version-option=--version \
		  $(XMLSEC_CONFIG_PROGRAM) > xmlsec1-config.1

$(XMLSEC_PROGRAM): 
	@cd ../apps;make

clean: