2008-04-01 19:04:33 +00:00
|
|
|
MAINTAINERCLEANFILES = $(srcdir)/Makefile.in
|
2005-07-17 19:59:36 +00:00
|
|
|
|
2008-03-06 16:06:59 +00:00
|
|
|
wikidir=$(htmldir)/wiki
|
2005-07-17 19:50:01 +00:00
|
|
|
|
2008-03-06 16:06:59 +00:00
|
|
|
if ENABLE_DOC
|
|
|
|
SUBDIRS = nonpersistent
|
|
|
|
endif
|
|
|
|
DIST_SUBDIRS = nonpersistent
|
2005-07-17 19:50:01 +00:00
|
|
|
|
2008-04-01 13:01:43 +00:00
|
|
|
dist_noinst_DATA = $(srcdir)/tools/*.xml \
|
|
|
|
$(srcdir)/api/*.xml \
|
2008-04-01 13:04:48 +00:00
|
|
|
$(srcdir)/api/apps/*.xml \
|
|
|
|
$(srcdir)/api/asn1/*.xml \
|
|
|
|
$(srcdir)/api/card/*.xml \
|
|
|
|
$(srcdir)/api/file/*.xml \
|
|
|
|
$(srcdir)/api/init/*.xml \
|
|
|
|
$(srcdir)/api/misc/*.xml \
|
|
|
|
$(srcdir)/api/types/*.xml \
|
|
|
|
$(srcdir)/api/util/*.xml \
|
2008-04-01 13:01:43 +00:00
|
|
|
$(srcdir)/api/api.css \
|
|
|
|
$(srcdir)/api/*.xsl
|
|
|
|
|
2008-03-06 16:06:59 +00:00
|
|
|
if ENABLE_DOC
|
|
|
|
dist_html_DATA = html.out/*
|
|
|
|
else
|
|
|
|
dist_noinst_DATA += html.out/*
|
|
|
|
endif
|
|
|
|
dist_doc_DATA = README
|
|
|
|
if WIN32
|
|
|
|
dist_noinst_DATA += man.out/*.1 man.out/*.3 man.out/*.5
|
|
|
|
else
|
|
|
|
dist_man1_MANS = man.out/*.1
|
|
|
|
dist_man3_MANS = man.out/*.3
|
|
|
|
dist_man5_MANS = man.out/*.5
|
|
|
|
endif
|
2005-09-02 16:53:08 +00:00
|
|
|
|
2008-03-06 16:06:59 +00:00
|
|
|
if SVN_CHECKOUT
|
|
|
|
if ENABLE_MAN
|
2005-09-12 17:34:00 +00:00
|
|
|
|
2008-04-01 16:55:23 +00:00
|
|
|
html.out/*: api.work
|
2008-03-06 16:06:59 +00:00
|
|
|
test -n "$(XSLTPROC)"
|
|
|
|
-rm -fr html.tmp
|
2008-03-10 16:38:01 +00:00
|
|
|
$(MKDIR_P) html.tmp
|
2008-04-01 16:55:23 +00:00
|
|
|
$(XSLTPROC) --nonet --path "$(srcdir)/api" --xinclude -o "html.tmp/api.html" "api.work/html.xsl" "$(srcdir)/api/api.xml"
|
|
|
|
$(XSLTPROC) --nonet --path "$(srcdir)/api" --xinclude -o "html.tmp/tools.html" "api.work/html.xsl" "$(srcdir)/tools/tools.xml"
|
2008-03-06 16:06:59 +00:00
|
|
|
mv html.tmp html.out
|
|
|
|
|
2008-04-01 16:55:23 +00:00
|
|
|
man.out/*.1: api.work
|
2008-03-06 16:06:59 +00:00
|
|
|
test -n "$(XSLTPROC)"
|
|
|
|
-rm -fr man.tmp
|
2008-03-10 16:38:01 +00:00
|
|
|
$(MKDIR_P) man.tmp
|
2008-04-01 16:55:23 +00:00
|
|
|
$(XSLTPROC) --nonet --path "$(srcdir)/api" --xinclude -o "man.tmp/" "api.work/man.xsl" "$(srcdir)/api/api.xml"
|
|
|
|
$(XSLTPROC) --nonet --path "$(srcdir)/api" --xinclude -o "man.tmp/" "api.work/man.xsl" "$(srcdir)/tools/tools.xml"
|
2008-03-06 16:06:59 +00:00
|
|
|
mv man.tmp man.out
|
|
|
|
|
|
|
|
man.out/*.3 man.out/*.5: man.out/*.1
|
|
|
|
|
2008-04-01 16:55:23 +00:00
|
|
|
#
|
|
|
|
# This part is needed as found no
|
|
|
|
# way to make xsltproc find xsl-stylesheets
|
|
|
|
# in builddir while xsl on srcdir
|
|
|
|
#
|
|
|
|
api.work: \
|
|
|
|
$(abs_srcdir)/api/html.xsl \
|
|
|
|
$(abs_srcdir)/api/man.xsl
|
|
|
|
-rm -fr api.work
|
|
|
|
$(MKDIR_P) api.work
|
|
|
|
$(LN_S) "$(abs_srcdir)/api/html.xsl" api.work/html.xsl
|
|
|
|
$(LN_S) "$(abs_srcdir)/api/man.xsl" api.work/man.xsl
|
|
|
|
$(LN_S) "$(xslstylesheetsdir)" api.work/xsl-stylesheets
|
2008-03-06 16:06:59 +00:00
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
html.out/*:
|
|
|
|
man.out/*.1:
|
|
|
|
man.out/*.3 man.out/*.5: man.out/*.1
|
|
|
|
|
|
|
|
endif
|
2008-04-01 19:58:30 +00:00
|
|
|
else
|
|
|
|
|
|
|
|
|
|
|
|
html.out/*:
|
|
|
|
$(LN_S) "$(srcdir)/html.out" html.out
|
|
|
|
|
|
|
|
man.out/*.1:
|
|
|
|
$(LN_S) "$(srcdir)/man.out" man.out
|
|
|
|
|
|
|
|
man.out/*.3 man.out/*.5: man.out/*.1
|
|
|
|
|
2008-03-06 16:06:59 +00:00
|
|
|
endif
|
2005-09-13 10:46:17 +00:00
|
|
|
|
2005-09-12 17:34:00 +00:00
|
|
|
maintainer-clean-local:
|
2008-04-04 19:21:59 +00:00
|
|
|
-rm -rf "$(srcdir)/html.out" "$(srcdir)/man.out"
|
|
|
|
|
2008-04-11 12:52:46 +00:00
|
|
|
distclean-local:
|
2008-04-04 19:21:59 +00:00
|
|
|
-rm -fr html.out html.tmp man.out man.tmp api.work
|