Reworked lxsession man page generation.
[lxde/lxsession.git] / man / Makefile.am
1 man_MANS = \
2         lxsession.1 \
3         lxsession-logout.1
4
5 man_XMANS = \
6         lxsession.xml \
7         lxsession-logout.xml
8
9 EXTRA_DIST = \
10         $(man_MANS) \
11         $(man_XMANS)
12
13
14 if ENABLE_REGENERATE_MAN
15
16 lxsession.1: lxsession.xml
17         $(XSLTPROC) -nonet http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<
18
19 lxsession-logout.1: lxsession-logout.xml
20         $(XSLTPROC) -nonet http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<        
21
22 CLEANFILES = $(man_MANS) 
23 else
24
25 $(man_MANS):
26         @echo ""
27         @echo "Error: you need to run configure with '--enable-man'"
28         @echo "       in order to regenerate man pages."
29         @echo ""
30         @false
31 endif
32
33