added Vector_zeroEnd() function
[util-vserver.git] / util-vserver / doc / Makefile-files
1 ## $Id$  -*- makefile -*-
2
3 ## Copyright (C) 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
4 ##  
5 ## This program is free software; you can redistribute it and/or modify
6 ## it under the terms of the GNU General Public License as published by
7 ## the Free Software Foundation; either version 2, or (at your option)
8 ## any later version.
9 ##  
10 ## This program is distributed in the hope that it will be useful,
11 ## but WITHOUT ANY WARRANTY; without even the implied warranty of
12 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 ## GNU General Public License for more details.
14 ##  
15 ## You should have received a copy of the GNU General Public License
16 ## along with this program; if not, write to the Free Software
17 ## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18 ##  
19
20 doc_old_doc =                   doc/intro.txt
21
22 XSLT_AMFLAGS =                  --stringparam confdir '$(sysconfdir)/vservers'
23 XSLTP_AMFLAGS =                 -param confdir '$(sysconfdir)/vservers'
24
25 doc_gen_DOCS =                  doc/configuration.html \
26                                 doc/compatibility.html
27
28 doc_configuration_SRCS =        doc/configuration.xml \
29                                 doc/configuration.xsd \
30                                 doc/configuration-lsd.css \
31                                 doc/configuration-xhtml.xsl
32
33 doc_compatibility_SRCS =        doc/compatibility.xml \
34                                 doc/compatibility.dtd \
35                                 doc/compatibility-xhtml.xsl
36
37 EXTRA_DIST +=                   $(doc_compatibility_SRCS) \
38                                 $(doc_configuration_SRCS) \
39                                 $(doc_old_doc) \
40                                 $(doc_gen_DOCS)
41
42 CLEANFILES +=                   doc/*.raw.html* doc/*.html.tmp
43
44 doc/configuration.html:         STYLESHEET=$(srcdir)/doc/configuration-xhtml.xsl
45 doc/configuration.html:         $(srcdir)/doc/configuration-xhtml.xsl
46
47 doc/compatibility.html:         STYLESHEET=$(srcdir)/doc/compatibility-xhtml.xsl
48 doc/compatibility.html:         $(srcdir)/doc/compatibility-xhtml.xsl
49
50 doc:                            doc_doc
51 doc_doc:                        $(doc_gen_DOCS)
52
53 if HAVE_XSLTP
54 CLEANFILES +=                   $(doc_gen_DOCS)
55 %.html:                         %.xml $(STYLESHEET)
56                                 LANG=C $(XSLTP) $(XSLTP_AMFLAGS) -in '$<' -xsl $(STYLESHEET) -out '$@.tmp'
57                                 @mv -f '$@.tmp' '$@'
58 endif