-SUBDIRS = . html man
-
-SGML= drivers.sgml funcref.sgml glossary.sgml \
+SGML = drivers.sgml funcref.sgml glossary.sgml \
install.sgml intro.sgml other.sgml reference.sgml tutorial.sgml \
- driverwriting.sgml
+ driverwriting.sgml comedilib.sgml
-BUILT_SOURCES = funcref.sgml drivers.sgml
+EXTRA_DIST = $(SGML) funcref mkref drivers.txt mkdr FAQ $(all_html) $(all_man) comedilib.pdf
-EXTRA_DIST=$(SGML) comedilib.sgml funcref mkref drivers.txt mkdr
+BUILT_SOURCES = funcref.sgml drivers.sgml
if HAVE_DOCBOOK2PDF
pkgdata_DATA = comedilib.pdf
pkgdata_DATA =
endif
-CLEANFILES = comedilib.pdf
+if HAVE_DOCBOOK2HTML
+all_html = $(srcdir)/html
+install_html = install_html
+uninstall_html = uninstall_html
+else
+all_html =
+install_html =
+uninstall_html =
+endif
+
+if HAVE_DOCBOOK2MAN
+all_man = $(srcdir)/man
+install_man = install_man
+uninstall_man = uninstall_man
+else
+all_man =
+install_man =
+uninstall_man =
+endif
+
+all-local: $(all_html) $(all_man)
+
+install-data-local: $(install_html) $(install_man)
+
+html: $(SGML)
+ { $(DOCBOOK2HTML) -o html $(srcdir)/comedilib.sgml && touch html; } || { $(RM) -r html; exit 1; }
+
+install_html:
+ $(INSTALL) -d $(pkgdatadir)/html
+ for each in $(srcdir)/html/*.html $(srcdir)/*.gif ; do \
+ $(INSTALL_DATA) $$each $(pkgdatadir)/html ; done
+
+uninstall-local: $(uninstall_html) $(uninstall_man)
+
+uninstall_html:
+ for each in $(srcdir)/html/*.html $(srcdir)/*.gif ; do \
+ $(RM) $(pkgdatadir)/html/`basename $$each` ; done
+
+man: $(SGML)
+ { $(DOCBOOK2MAN) -o man $(srcdir)/comedilib.sgml && touch man; } || { $(RM) -r man; exit 1; }
+
+install_man:
+ $(INSTALL) -d $(mandir)/man3
+ for each in $(srcdir)/man/*.3 ; do $(INSTALL_DATA) $$each $(mandir)/man3 ; done
+
+uninstall_man:
+ for each in $(srcdir)/man/*.3 ; do $(RM) $(mandir)/man3/`basename $$each` ; done
-comedilib.pdf: $(srcdir)/comedilib.sgml $(SGML)
+comedilib.pdf: $(SGML)
$(DOCBOOK2PDF) $(srcdir)/comedilib.sgml
funcref.sgml: funcref mkref
drivers.sgml: drivers.txt mkdr
$(srcdir)/mkdr drivers.txt >drivers.sgml
-#touch comedilib.sgml if any of the source files have changed,
-# so subdirs know they need to regenerate files
-comedilib.sgml: $(SGML)
- touch $(srcdir)/comedilib.sgml
+maintainer-clean-local:
+ $(RM) -r html man
+ $(RM) comedilib.pdf
locales = de
+++ /dev/null
-
-EXTRA_DIST = acq-seq.gif
-
-if HAVE_DOCBOOK2HTML
-all_html = $(srcdir)/dummy
-install_html = install_html
-uninstall_html = uninstall_html
-else
-all_html =
-install_html =
-uninstall_html =
-endif
-
-all-local: $(all_html)
-
-dummy: $(srcdir)/../comedilib.sgml
- $(DOCBOOK2HTML) $(srcdir)/../comedilib.sgml
- touch $(srcdir)/dummy
-
-install-data-local: $(install_html)
-
-install_html:
- $(INSTALL) -d $(pkgdatadir)/html
- for each in *.html $(srcdir)/*.gif ; do $(INSTALL_DATA) $$each $(pkgdatadir)/html ; done
-
-uninstall-local: $(uninstall_html)
-
-uninstall_html:
- for each in *.html $(srcdir)/*.gif ; do rm $(pkgdatadir)/html/`basename $$each` ; done
-
-clean-local:
- rm -rf *.html
- rm -f dummy
+++ /dev/null
-
-if HAVE_DOCBOOK2MAN
-all_man = $(srcdir)/dummy
-install_man = install_man
-uninstall_man = uninstall_man
-else
-all_man =
-install_man =
-uninstall_man =
-endif
-
-all-local: $(all_man)
-
-dummy: $(srcdir)/../comedilib.sgml
- $(DOCBOOK2MAN) $(srcdir)/../comedilib.sgml
- touch $(srcdir)/dummy
-
-install-data-local: $(install_man)
-
-install_man:
- $(INSTALL) -d $(mandir)/man3
- for each in *.3 ; do $(INSTALL_DATA) $$each $(mandir)/man3 ; done
-
-uninstall-local: $(uninstall_man)
-
-uninstall_man:
- for each in *.3 ; do rm $(mandir)/man3/$$each ; done
-
-clean-local:
- rm -f *.3
- rm -f manpage.links manpage.refs
- rm -f dummy
-