diff --git a/ChangeLog b/ChangeLog index ec6c192c0..0781255e4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2009-02-13 Chris Bagwell + * Makefile.am, configure.in, doc/Makefile.am: Convert + doc/Makefile to use automake. Main difference is that + no longer installs man pages for backends that are not + compiled. Moved install ownership of $top_srcdir docs + to $top_srcdir's Makefile. + 2009-02-06 Chris Bagwell * configure.in, backend/Makefile.am: Add back change to use -version-number even though its known not to work on diff --git a/Makefile.am b/Makefile.am index afb555356..978a7e394 100644 --- a/Makefile.am +++ b/Makefile.am @@ -7,17 +7,17 @@ SUBDIRS = include lib sanei backend frontend tools doc po DIST_SUBDIRS = include lib sanei backend frontend tools doc po japi testsuite -EXTRA_DIST = AUTHORS ChangeLog ChangeLog-1.0.0 ChangeLog-1.0.1 \ - ChangeLog-1.0.2 ChangeLog-1.0.3 ChangeLog-1.0.4 ChangeLog-1.0.5 \ - ChangeLog-1.0.6 ChangeLog-1.0.7 ChangeLog-1.0.8 ChangeLog-1.0.9 \ - ChangeLog-1.0.10 ChangeLog-1.0.12 ChangeLog-1.0.13 ChangeLog-1.0.14 \ - ChangeLog-1.0.15 ChangeLog-1.0.16 ChangeLog-1.0.17 ChangeLog-1.0.18 \ - ChangeLog-1.0.19 \ - LICENSE PROBLEMS PROJECTS \ - README.aix README.beos README.darwin README.djpeg README.freebsd \ +dist_doc_DATA = AUTHORS ChangeLog COPYING LICENSE NEWS PROBLEMS PROJECTS \ + README README.aix README.beos README.darwin README.djpeg README.freebsd \ README.hp-ux README.linux README.netbsd README.openbsd README.os2 \ README.solaris README.unixware2 README.unixware7 README.windows \ - README.zeta $(PACKAGE).lsm + README.zeta +EXTRA_DIST = ChangeLog-1.0.0 ChangeLog-1.0.1 ChangeLog-1.0.2 \ + ChangeLog-1.0.3 ChangeLog-1.0.4 ChangeLog-1.0.5 ChangeLog-1.0.6 \ + ChangeLog-1.0.7 ChangeLog-1.0.8 ChangeLog-1.0.9 ChangeLog-1.0.10 \ + ChangeLog-1.0.12 ChangeLog-1.0.13 ChangeLog-1.0.14 ChangeLog-1.0.15 \ + ChangeLog-1.0.16 ChangeLog-1.0.17 ChangeLog-1.0.18 ChangeLog-1.0.19 \ + $(PACKAGE).lsm # # Keep the .cvsignore files sorted, and use this target to do it. diff --git a/Makefile.in b/Makefile.in index 059ae87d2..1cc3339e3 100644 --- a/Makefile.in +++ b/Makefile.in @@ -13,6 +13,7 @@ # PARTICULAR PURPOSE. @SET_MAKE@ + VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ @@ -32,11 +33,9 @@ POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = . -DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \ - $(srcdir)/Makefile.in $(top_srcdir)/configure \ - $(top_srcdir)/doc/Makefile.in \ - $(top_srcdir)/doc/doxygen-sanei.conf.in \ - $(top_srcdir)/frontend/Makefile.in \ +DIST_COMMON = README $(am__configure_deps) $(dist_doc_DATA) \ + $(srcdir)/Makefile.am $(srcdir)/Makefile.in \ + $(top_srcdir)/configure $(top_srcdir)/frontend/Makefile.in \ $(top_srcdir)/include/Makefile.in \ $(top_srcdir)/include/sane/config.h.in \ $(top_srcdir)/japi/Makefile.in $(top_srcdir)/po/Makefile.in \ @@ -57,8 +56,8 @@ am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \ mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = $(top_builddir)/include/sane/config.h CONFIG_CLEAN_FILES = sanei/Makefile frontend/Makefile japi/Makefile \ - include/Makefile doc/Makefile po/Makefile testsuite/Makefile \ - tools/Makefile doc/doxygen-sanei.conf tools/sane-config + include/Makefile po/Makefile testsuite/Makefile tools/Makefile \ + tools/sane-config SOURCES = DIST_SOURCES = RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ @@ -68,6 +67,15 @@ RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ install-pdf-recursive install-ps-recursive install-recursive \ installcheck-recursive installdirs-recursive pdf-recursive \ ps-recursive uninstall-recursive +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; +am__vpath_adj = case $$p in \ + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ + *) f=$$p;; \ + esac; +am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; +am__installdirs = "$(DESTDIR)$(docdir)" +dist_docDATA_INSTALL = $(INSTALL_DATA) +DATA = $(dist_doc_DATA) RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ distclean-recursive maintainer-clean-recursive ETAGS = etags @@ -96,6 +104,7 @@ AVAHI_LIBS = @AVAHI_LIBS@ AWK = @AWK@ BACKEND_CONFS_ENABLED = @BACKEND_CONFS_ENABLED@ BACKEND_LIBS_ENABLED = @BACKEND_LIBS_ENABLED@ +BACKEND_MANS_ENABLED = @BACKEND_MANS_ENABLED@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ @@ -109,7 +118,6 @@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ -DEPEND_RECURSIVE = @DEPEND_RECURSIVE@ DISTCLEAN_FILES = @DISTCLEAN_FILES@ DLLTOOL = @DLLTOOL@ DL_LIBS = @DL_LIBS@ @@ -150,7 +158,6 @@ LN_S = @LN_S@ LOCKPATH_GROUP = @LOCKPATH_GROUP@ LTLIBOBJS = @LTLIBOBJS@ MAINT = @MAINT@ -MAKEDEPEND = @MAKEDEPEND@ MAKEINDEX = @MAKEINDEX@ MAKEINFO = @MAKEINFO@ MATH_LIB = @MATH_LIB@ @@ -188,7 +195,6 @@ STRIP = @STRIP@ SYSLOG_LIBS = @SYSLOG_LIBS@ TIFF_LIBS = @TIFF_LIBS@ USB_LIBS = @USB_LIBS@ -USE_LATEX = @USE_LATEX@ VERSION = @VERSION@ V_MAJOR = @V_MAJOR@ V_MINOR = @V_MINOR@ @@ -250,17 +256,18 @@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ SUBDIRS = include lib sanei backend frontend tools doc po DIST_SUBDIRS = include lib sanei backend frontend tools doc po japi testsuite -EXTRA_DIST = AUTHORS ChangeLog ChangeLog-1.0.0 ChangeLog-1.0.1 \ - ChangeLog-1.0.2 ChangeLog-1.0.3 ChangeLog-1.0.4 ChangeLog-1.0.5 \ - ChangeLog-1.0.6 ChangeLog-1.0.7 ChangeLog-1.0.8 ChangeLog-1.0.9 \ - ChangeLog-1.0.10 ChangeLog-1.0.12 ChangeLog-1.0.13 ChangeLog-1.0.14 \ - ChangeLog-1.0.15 ChangeLog-1.0.16 ChangeLog-1.0.17 ChangeLog-1.0.18 \ - ChangeLog-1.0.19 \ - LICENSE PROBLEMS PROJECTS \ - README.aix README.beos README.darwin README.djpeg README.freebsd \ +dist_doc_DATA = AUTHORS ChangeLog COPYING LICENSE NEWS PROBLEMS PROJECTS \ + README README.aix README.beos README.darwin README.djpeg README.freebsd \ README.hp-ux README.linux README.netbsd README.openbsd README.os2 \ README.solaris README.unixware2 README.unixware7 README.windows \ - README.zeta $(PACKAGE).lsm + README.zeta + +EXTRA_DIST = ChangeLog-1.0.0 ChangeLog-1.0.1 ChangeLog-1.0.2 \ + ChangeLog-1.0.3 ChangeLog-1.0.4 ChangeLog-1.0.5 ChangeLog-1.0.6 \ + ChangeLog-1.0.7 ChangeLog-1.0.8 ChangeLog-1.0.9 ChangeLog-1.0.10 \ + ChangeLog-1.0.12 ChangeLog-1.0.13 ChangeLog-1.0.14 ChangeLog-1.0.15 \ + ChangeLog-1.0.16 ChangeLog-1.0.17 ChangeLog-1.0.18 ChangeLog-1.0.19 \ + $(PACKAGE).lsm # @@ -328,16 +335,12 @@ japi/Makefile: $(top_builddir)/config.status $(top_srcdir)/japi/Makefile.in cd $(top_builddir) && $(SHELL) ./config.status $@ include/Makefile: $(top_builddir)/config.status $(top_srcdir)/include/Makefile.in cd $(top_builddir) && $(SHELL) ./config.status $@ -doc/Makefile: $(top_builddir)/config.status $(top_srcdir)/doc/Makefile.in - cd $(top_builddir) && $(SHELL) ./config.status $@ po/Makefile: $(top_builddir)/config.status $(top_srcdir)/po/Makefile.in cd $(top_builddir) && $(SHELL) ./config.status $@ testsuite/Makefile: $(top_builddir)/config.status $(top_srcdir)/testsuite/Makefile.in cd $(top_builddir) && $(SHELL) ./config.status $@ tools/Makefile: $(top_builddir)/config.status $(top_srcdir)/tools/Makefile.in cd $(top_builddir) && $(SHELL) ./config.status $@ -doc/doxygen-sanei.conf: $(top_builddir)/config.status $(top_srcdir)/doc/doxygen-sanei.conf.in - cd $(top_builddir) && $(SHELL) ./config.status $@ tools/sane-config: $(top_builddir)/config.status $(top_srcdir)/tools/sane-config.in cd $(top_builddir) && $(SHELL) ./config.status $@ @@ -349,6 +352,23 @@ clean-libtool: distclean-libtool: -rm -f libtool +install-dist_docDATA: $(dist_doc_DATA) + @$(NORMAL_INSTALL) + test -z "$(docdir)" || $(MKDIR_P) "$(DESTDIR)$(docdir)" + @list='$(dist_doc_DATA)'; for p in $$list; do \ + if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ + f=$(am__strip_dir) \ + echo " $(dist_docDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(docdir)/$$f'"; \ + $(dist_docDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(docdir)/$$f"; \ + done + +uninstall-dist_docDATA: + @$(NORMAL_UNINSTALL) + @list='$(dist_doc_DATA)'; for p in $$list; do \ + f=$(am__strip_dir) \ + echo " rm -f '$(DESTDIR)$(docdir)/$$f'"; \ + rm -f "$(DESTDIR)$(docdir)/$$f"; \ + done # This directory's subdirectories are mostly independent; you can cd # into them and run `make' without going through this Makefile. @@ -630,9 +650,12 @@ distcleancheck: distclean exit 1; } >&2 check-am: all-am check: check-recursive -all-am: Makefile +all-am: Makefile $(DATA) installdirs: installdirs-recursive installdirs-am: + for dir in "$(DESTDIR)$(docdir)"; do \ + test -z "$$dir" || $(MKDIR_P) "$$dir"; \ + done install: install-recursive install-exec: install-exec-recursive install-data: install-data-recursive @@ -677,7 +700,7 @@ info: info-recursive info-am: -install-data-am: +install-data-am: install-dist_docDATA install-dvi: install-dvi-recursive @@ -713,7 +736,7 @@ ps: ps-recursive ps-am: -uninstall-am: +uninstall-am: uninstall-dist_docDATA .MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) install-am \ install-strip @@ -726,14 +749,15 @@ uninstall-am: distclean-libtool distclean-local distclean-tags \ distcleancheck distdir distuninstallcheck dvi dvi-am html \ html-am info info-am install install-am install-data \ - install-data-am install-dvi install-dvi-am install-exec \ - install-exec-am install-html install-html-am install-info \ - install-info-am install-man install-pdf install-pdf-am \ - install-ps install-ps-am install-strip installcheck \ - installcheck-am installdirs installdirs-am maintainer-clean \ - maintainer-clean-generic mostlyclean mostlyclean-generic \ - mostlyclean-libtool pdf pdf-am ps ps-am tags tags-recursive \ - uninstall uninstall-am + install-data-am install-dist_docDATA install-dvi \ + install-dvi-am install-exec install-exec-am install-html \ + install-html-am install-info install-info-am install-man \ + install-pdf install-pdf-am install-ps install-ps-am \ + install-strip installcheck installcheck-am installdirs \ + installdirs-am maintainer-clean maintainer-clean-generic \ + mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \ + ps ps-am tags tags-recursive uninstall uninstall-am \ + uninstall-dist_docDATA sort-cvsignore: for f in `find . -name .cvsignore`; do \ diff --git a/backend/Makefile.in b/backend/Makefile.in index 87f895a97..391ab27c8 100644 --- a/backend/Makefile.in +++ b/backend/Makefile.in @@ -1272,6 +1272,7 @@ AVAHI_LIBS = @AVAHI_LIBS@ AWK = @AWK@ BACKEND_CONFS_ENABLED = @BACKEND_CONFS_ENABLED@ BACKEND_LIBS_ENABLED = @BACKEND_LIBS_ENABLED@ +BACKEND_MANS_ENABLED = @BACKEND_MANS_ENABLED@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ @@ -1285,7 +1286,6 @@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ -DEPEND_RECURSIVE = @DEPEND_RECURSIVE@ DISTCLEAN_FILES = @DISTCLEAN_FILES@ DLLTOOL = @DLLTOOL@ DL_LIBS = @DL_LIBS@ @@ -1328,7 +1328,6 @@ LN_S = @LN_S@ LOCKPATH_GROUP = @LOCKPATH_GROUP@ LTLIBOBJS = @LTLIBOBJS@ MAINT = @MAINT@ -MAKEDEPEND = @MAKEDEPEND@ MAKEINDEX = @MAKEINDEX@ MAKEINFO = @MAKEINFO@ MATH_LIB = @MATH_LIB@ @@ -1366,7 +1365,6 @@ STRIP = @STRIP@ SYSLOG_LIBS = @SYSLOG_LIBS@ TIFF_LIBS = @TIFF_LIBS@ USB_LIBS = @USB_LIBS@ -USE_LATEX = @USE_LATEX@ VERSION = @VERSION@ V_MAJOR = @V_MAJOR@ V_MINOR = @V_MINOR@ diff --git a/configure b/configure index a08de8d6d..428b949a3 100755 --- a/configure +++ b/configure @@ -792,8 +792,10 @@ ac_includes_default="\ ac_subst_vars='LTLIBOBJS DISTCLEAN_FILES -USE_LATEX +USE_LATEX_FALSE +USE_LATEX_TRUE INSTALL_TRANSLATIONS +BACKEND_MANS_ENABLED BACKEND_CONFS_ENABLED PRELOADABLE_BACKENDS_ENABLED PRELOADABLE_BACKENDS @@ -851,9 +853,9 @@ effective_target LINKER_RPATH STRICT_LDFLAGS INCLUDES +CROSS_COMPILING_FALSE +CROSS_COMPILING_TRUE CROSS_COMPILING -DEPEND_RECURSIVE -MAKEDEPEND MAKEINDEX DVIPS LATEX @@ -4737,45 +4739,6 @@ $as_echo "no" >&6; } fi -# Extract the first word of "makedepend$EXEEXT", so it can be a program name with args. -set dummy makedepend$EXEEXT; ac_word=$2 -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if test "${ac_cv_path_MAKEDEPEND+set}" = set; then - $as_echo_n "(cached) " >&6 -else - case $MAKEDEPEND in - [\\/]* | ?:[\\/]*) - ac_cv_path_MAKEDEPEND="$MAKEDEPEND" # Let the user override the test with a path. - ;; - *) - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_path_MAKEDEPEND="$as_dir/$ac_word$ac_exec_ext" - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done -IFS=$as_save_IFS - - test -z "$ac_cv_path_MAKEDEPEND" && ac_cv_path_MAKEDEPEND="no" - ;; -esac -fi -MAKEDEPEND=$ac_cv_path_MAKEDEPEND -if test -n "$MAKEDEPEND"; then - { $as_echo "$as_me:$LINENO: result: $MAKEDEPEND" >&5 -$as_echo "$MAKEDEPEND" >&6; } -else - { $as_echo "$as_me:$LINENO: result: no" >&5 -$as_echo "no" >&6; } -fi @@ -4783,15 +4746,18 @@ fi +CROSS_COMPILING=$cross_compiling +# FIXME: Remove AC_SUBSAT once tools directory is done -if test "$MAKEDEPEND" != "no"; then - DEPEND_RECURSIVE="depend-recursive" + if test x$cross_compiling = xyes; then + CROSS_COMPILING_TRUE= + CROSS_COMPILING_FALSE='#' +else + CROSS_COMPILING_TRUE='#' + CROSS_COMPILING_FALSE= fi -CROSS_COMPILING=$cross_compiling - - INCLUDES="${INCLUDES} -I/usr/local/include" @@ -15979,7 +15945,7 @@ ia64-*-hpux*) ;; *-*-irix6*) # Find out which ABI we are using. - echo '#line 15982 "configure"' > conftest.$ac_ext + echo '#line 15948 "configure"' > conftest.$ac_ext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? @@ -18859,11 +18825,11 @@ else -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:18862: $lt_compile\"" >&5) + (eval echo "\"\$as_me:18828: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 - echo "$as_me:18866: \$? = $ac_status" >&5 + echo "$as_me:18832: \$? = $ac_status" >&5 if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. @@ -19149,11 +19115,11 @@ else -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:19152: $lt_compile\"" >&5) + (eval echo "\"\$as_me:19118: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 - echo "$as_me:19156: \$? = $ac_status" >&5 + echo "$as_me:19122: \$? = $ac_status" >&5 if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. @@ -19253,11 +19219,11 @@ else -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:19256: $lt_compile\"" >&5) + (eval echo "\"\$as_me:19222: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 - echo "$as_me:19260: \$? = $ac_status" >&5 + echo "$as_me:19226: \$? = $ac_status" >&5 if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized @@ -21655,7 +21621,7 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext < conftest.$ac_ext <&5) + (eval echo "\"\$as_me:24137: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 - echo "$as_me:24175: \$? = $ac_status" >&5 + echo "$as_me:24141: \$? = $ac_status" >&5 if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. @@ -24272,11 +24238,11 @@ else -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:24275: $lt_compile\"" >&5) + (eval echo "\"\$as_me:24241: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 - echo "$as_me:24279: \$? = $ac_status" >&5 + echo "$as_me:24245: \$? = $ac_status" >&5 if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized @@ -25857,11 +25823,11 @@ else -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:25860: $lt_compile\"" >&5) + (eval echo "\"\$as_me:25826: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 - echo "$as_me:25864: \$? = $ac_status" >&5 + echo "$as_me:25830: \$? = $ac_status" >&5 if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. @@ -25961,11 +25927,11 @@ else -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:25964: $lt_compile\"" >&5) + (eval echo "\"\$as_me:25930: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 - echo "$as_me:25968: \$? = $ac_status" >&5 + echo "$as_me:25934: \$? = $ac_status" >&5 if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized @@ -28182,11 +28148,11 @@ else -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:28185: $lt_compile\"" >&5) + (eval echo "\"\$as_me:28151: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 - echo "$as_me:28189: \$? = $ac_status" >&5 + echo "$as_me:28155: \$? = $ac_status" >&5 if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. @@ -28472,11 +28438,11 @@ else -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:28475: $lt_compile\"" >&5) + (eval echo "\"\$as_me:28441: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 - echo "$as_me:28479: \$? = $ac_status" >&5 + echo "$as_me:28445: \$? = $ac_status" >&5 if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. @@ -28576,11 +28542,11 @@ else -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:28579: $lt_compile\"" >&5) + (eval echo "\"\$as_me:28545: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 - echo "$as_me:28583: \$? = $ac_status" >&5 + echo "$as_me:28549: \$? = $ac_status" >&5 if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized @@ -31453,9 +31419,11 @@ fi BACKENDS="$FILTERED_BACKENDS" BACKEND_LIBS_ENABLED="" BACKEND_CONFS_ENABLED="" +BACKEND_MANS_ENABLED="" for backend in ${BACKENDS} ; do BACKEND_LIBS_ENABLED="${BACKEND_LIBS_ENABLED} libsane-${backend}.la" BACKEND_CONFS_ENABLED="${BACKEND_CONFS_ENABLED} ${backend}.conf" + BACKEND_MANS_ENABLED="${BACKEND_MANS_ENABLED} sane-${backend}.5" done @@ -31598,6 +31566,7 @@ PRELOADABLE_BACKENDS_ENABLED="" # of all backends. for backend in ${PRELOADABLE_BACKENDS} ; do BACKEND_CONFS_ENABLED="${BACKEND_CONFS_ENABLED} ${backend}.conf" + BACKEND_MANS_ENABLED="${BACKEND_MANS_ENABLED} sane-${backend}.5" # Special hacks. Normally, we create a convenience library that # matches the backend's name but in some cases that will conflict # with an external library name that also matches backend name. @@ -31612,6 +31581,7 @@ done + case $host_os in beos*) libdir='${exec_prefix}/add-ons' @@ -31660,6 +31630,13 @@ if test "$LATEX" != "no" && test "$DVIPS" != "no" && test "$MAKEINDEX" != "no" ; else USE_LATEX="no" fi + if test x$USE_LATEX = xyes; then + USE_LATEX_TRUE= + USE_LATEX_FALSE='#' +else + USE_LATEX_TRUE='#' + USE_LATEX_FALSE= +fi @@ -31788,6 +31765,13 @@ $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi +if test -z "${CROSS_COMPILING_TRUE}" && test -z "${CROSS_COMPILING_FALSE}"; then + { { $as_echo "$as_me:$LINENO: error: conditional \"CROSS_COMPILING\" was never defined. +Usually this means the macro was only invoked conditionally." >&5 +$as_echo "$as_me: error: conditional \"CROSS_COMPILING\" was never defined. +Usually this means the macro was only invoked conditionally." >&2;} + { (exit 1); exit 1; }; } +fi if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then @@ -31797,6 +31781,13 @@ $as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi +if test -z "${USE_LATEX_TRUE}" && test -z "${USE_LATEX_FALSE}"; then + { { $as_echo "$as_me:$LINENO: error: conditional \"USE_LATEX\" was never defined. +Usually this means the macro was only invoked conditionally." >&5 +$as_echo "$as_me: error: conditional \"USE_LATEX\" was never defined. +Usually this means the macro was only invoked conditionally." >&2;} + { (exit 1); exit 1; }; } +fi : ${CONFIG_STATUS=./config.status} ac_write_fail=0 diff --git a/configure.in b/configure.in index 1d1eeb50f..2e7b5bb99 100644 --- a/configure.in +++ b/configure.in @@ -66,20 +66,17 @@ AC_PATH_PROG(MSGMERGE, msgmerge$EXEEXT, no) AC_PATH_PROG(LATEX, latex$EXEEXT, no) AC_PATH_PROG(DVIPS, dvips$EXEEXT, no) AC_PATH_PROG(MAKEINDEX, makeindex$EXEEXT, no) -AC_PATH_PROG(MAKEDEPEND, makedepend$EXEEXT, no) AC_SUBST(MSGFMT) AC_SUBST(XGETTEXT) AC_SUBST(MSGMERGE) AC_SUBST(LATEX) AC_SUBST(DVIPS) AC_SUBST(MAKEINDEX) -if test "$MAKEDEPEND" != "no"; then - DEPEND_RECURSIVE="depend-recursive" -fi -AC_SUBST(DEPEND_RECURSIVE) CROSS_COMPILING=$cross_compiling +# FIXME: Remove AC_SUBSAT once tools directory is done AC_SUBST(CROSS_COMPILING) +AM_CONDITIONAL(CROSS_COMPILING, test x$cross_compiling = xyes) dnl *********************************************************************** dnl set compiler/linker flags @@ -529,9 +526,11 @@ AC_ARG_ENABLE(pnm-backend, BACKENDS="$FILTERED_BACKENDS" BACKEND_LIBS_ENABLED="" BACKEND_CONFS_ENABLED="" +BACKEND_MANS_ENABLED="" for backend in ${BACKENDS} ; do BACKEND_LIBS_ENABLED="${BACKEND_LIBS_ENABLED} libsane-${backend}.la" BACKEND_CONFS_ENABLED="${BACKEND_CONFS_ENABLED} ${backend}.conf" + BACKEND_MANS_ENABLED="${BACKEND_MANS_ENABLED} sane-${backend}.5" done AC_SUBST(BACKEND_LIBS_ENABLED) @@ -572,6 +571,7 @@ PRELOADABLE_BACKENDS_ENABLED="" # of all backends. for backend in ${PRELOADABLE_BACKENDS} ; do BACKEND_CONFS_ENABLED="${BACKEND_CONFS_ENABLED} ${backend}.conf" + BACKEND_MANS_ENABLED="${BACKEND_MANS_ENABLED} sane-${backend}.5" # Special hacks. Normally, we create a convenience library that # matches the backend's name but in some cases that will conflict # with an external library name that also matches backend name. @@ -585,6 +585,7 @@ done AC_SUBST(PRELOADABLE_BACKENDS) AC_SUBST(PRELOADABLE_BACKENDS_ENABLED) AC_SUBST(BACKEND_CONFS_ENABLED) +AC_SUBST(BACKEND_MANS_ENABLED) dnl in BeOS, backends are not installed in lib/sane, but add-ons/sane/ dnl we account for both installing in /boot/beos and ~/config @@ -634,7 +635,7 @@ if test "$LATEX" != "no" && test "$DVIPS" != "no" && test "$MAKEINDEX" != "no" ; else USE_LATEX="no" fi -AC_SUBST(USE_LATEX) +AM_CONDITIONAL(USE_LATEX, test x$USE_LATEX = xyes) dnl *********************************************************************** dnl Write output files diff --git a/doc/Makefile.am b/doc/Makefile.am new file mode 100644 index 000000000..c530641ab --- /dev/null +++ b/doc/Makefile.am @@ -0,0 +1,313 @@ +## Makefile.am -- an automake template for Makefile.in file +## Copyright (C) 2009 Chris Bagwell and Sane Developers. +## +## This file is part of the "Sane" build infra-structure. See +## included LICENSE file for license information. + +man1_MANS = scanimage.1 sane-config.1 sane-find-scanner.1 gamma4scanimage.1 +EXTRA_DIST = scanimage.man sane-config.man sane-find-scanner.man \ + gamma4scanimage.man + +# Create a list of man pages for only backends that are compiled in so +# that is all that gets installed. Also, build a complete list of all +# backend man pages. This allows a user to optionally generate all +# man pages in HTML form for things like posting to a web site. +# +# Backend man pages bypass standard automake man5_MANS because there is not +# a man page for every supported backend. We could get rid of +# custom install/uninstall if we required man pages for every backend. +BACKEND_MANS_ENABLED = @BACKEND_MANS_ENABLED@ +BACKEND_5MANS = sane-abaton.5 sane-agfafocus.5 sane-apple.5 sane-as6e.5 \ + sane-dll.5 sane-dc25.5 sane-dmc.5 sane-epson.5 sane-epson2.5 \ + sane-hp.5 sane-gphoto2.5 sane-leo.5 sane-lexmark.5 \ + sane-matsushita.5 sane-microtek.5 sane-microtek2.5 sane-mustek.5 \ + sane-nec.5 sane-net.5 sane-pie.5 sane-pint.5 sane-pnm.5 \ + sane-umax.5 sane-qcam.5 sane-scsi.5 sane-artec.5 \ + sane-fujitsu.5 sane-sharp.5 sane-s9036.5 sane-tamarack.5 \ + sane-ricoh.5 sane-avision.5 sane-plustek.5 sane-st400.5 \ + sane-mustek_pp.5 sane-dc210.5 sane-v4l.5 sane-snapscan.5 \ + sane-canon.5 sane-coolscan.5 sane-bh.5 sane-dc240.5 \ + sane-umax_pp.5 sane-umax1220u.5 sane-sm3600.5 sane-usb.5 \ + sane-mustek_usb.5 sane-sceptre.5 sane-canon_pp.5 sane-canon630u.5 \ + sane-teco1.5 sane-teco2.5 sane-teco3.5 sane-test.5 sane-sp15c.5 \ + sane-coolscan2.5 sane-hpsj5s.5 sane-gt68xx.5 sane-artec_eplus48u.5 \ + sane-ma1509.5 sane-ibm.5 sane-hp5400.5 sane-plustek_pp.5 sane-u12.5 \ + sane-niash.5 sane-sm3840.5 sane-genesys.5 sane-hp4200.5 \ + sane-mustek_usb2.5 sane-hp3500.5 sane-pixma.5 sane-stv680.5 \ + sane-hp5590.5 sane-hpljm1005.5 sane-cardscan.5 sane-hp3900.5 \ + sane-epjitsu.5 sane-hs2p.5 sane-canon_dr.5 sane-xerox_mfp.5 \ + sane-rts8891.5 + +EXTRA_DIST += sane-abaton.man sane-agfafocus.man sane-apple.man sane-as6e.man \ + sane-dll.man sane-dc25.man sane-dmc.man sane-epson.man \ + sane-epson2.man sane-hp.man sane-gphoto2.man sane-leo.man \ + sane-lexmark.man sane-matsushita.man sane-microtek.man \ + sane-microtek2.man sane-mustek.man sane-nec.man sane-net.man \ + sane-pie.man sane-pint.man sane-pnm.man sane-umax.man \ + sane-qcam.man sane-scsi.man sane-artec.man sane-fujitsu.man \ + sane-sharp.man sane-s9036.man sane-tamarack.man \ + sane-ricoh.man sane-avision.man sane-plustek.man sane-st400.man \ + sane-mustek_pp.man sane-dc210.man sane-v4l.man sane-snapscan.man \ + sane-canon.man sane-coolscan.man sane-bh.man sane-dc240.man \ + sane-umax_pp.man sane-umax1220u.man sane-sm3600.man sane-usb.man \ + sane-mustek_usb.man sane-sceptre.man sane-canon_pp.man \ + sane-canon630u.man sane-teco1.man sane-teco2.man \ + sane-teco3.man sane-test.man sane-sp15c.man sane-coolscan2.man \ + sane-hpsj5s.man sane-gt68xx.man sane-artec_eplus48u.man \ + sane-ma1509.man sane-ibm.man sane-hp5400.man sane-plustek_pp.man \ + sane-u12.man sane-niash.man sane-sm3840.man sane-genesys.man \ + sane-hp4200.man sane-mustek_usb2.man sane-hp3500.man \ + sane-pixma.man sane-stv680.man sane-hp5590.man sane-hpljm1005.man \ + sane-cardscan.man sane-hp3900.man sane-epjitsu.man sane-hs2p.man \ + sane-canon_dr.man sane-xerox_mfp.man sane-rts8891.man + +man7_MANS = sane.7 +EXTRA_DIST += sane.man + +man8_MANS = saned.8 +EXTRA_DIST += saned.man + +MANPAGES = $(man1_MANS) $(BACKEND_5MANS) $(man7_MANS) $(man8_MANS) + +if CROSS_COMPILING +HTML_PAGES = +else +HTML_PAGES = sane-backends.html sane-backends-external.html \ + sane-mfgs.html sane-mfgs-external.html +endif +doc_DATA = $(HTML_PAGES) + +if USE_LATEX +STANDARD = sane.ps +else +STANDARD = +endif + +all: bemans $(STANDARD) html-pages + +dist_doc_DATA = backend-writing.txt +doc_DATA += $(STANDARD) +EXTRA_DIST += descriptions.txt releases.txt sane-logo2.jpg sane-logo.png \ + sane.png + +LATEX = TEXINPUTS=$(srcdir):$$TEXINPUTS @LATEX@ +DVIPS = @DVIPS@ +MAKEINDEX = @MAKEINDEX@ +DLH = TEXINPUTS=$(srcdir):$$TEXINPUTS dlh +MAN2HTML= nroff -man |\ + man2html -compress -topm 6 -botm 6 -nodepage -title $${page} \ + -cgiurl '$$title.$$section.html'|\ + sed 's,,

,' + +%.1 %.5 %.7 %.8: %.man + @echo "Generating manpage $@..."; + @sed -e 's|@DATADIR@|$(datadir)|g' \ + -e 's|@CONFIGDIR@|$(configdir)|g' \ + -e 's|@DOCDIR@|$(docdir)|g' \ + -e 's|@LIBDIR@|$(libdir)/sane|g' \ + -e 's|@BINDIR@|$(bindir)|g' \ + -e 's|@SBINDIR@|$(sbindir)|g' \ + -e 's|@PACKAGEVERSION@|$(package_version)|g' $^ >$@ + +bemans: $(BACKEND_5MANS) + +beman5dir = $(mandir)/man5 +install-beman5: $(BACKEND_5MANS) + test -z "$(beman5dir)" || $(MKDIR_P) "$(DESTDIR)$(beman5dir)" + @list="$(BACKEND_MANS_ENABLED) sane-dll.5 sane-scsi.5 sane-usb.5"; for man in $$list; do \ + if test ! -r $${man}; then continue; fi; \ + echo "installing $${man} in $(beman5dir)/$${man}..."; \ + $(INSTALL_DATA) $${man} $(DESTDIR)$(beman5dir)/$${man} \ + || exit 1; \ + done + +BEDOCS = canon/canon.changes canon/canon.install2700F.txt +BEDOCS += gt68xx/gt68xx.CHANGES gt68xx/gt68xx.TODO +BEDOCS += leo/leo.txt +BEDOCS += matsushita/matsushita.txt +BEDOCS += mustek/mustek.CHANGES +BEDOCS += mustek_usb/mustek_usb.CHANGES mustek_usb/mustek_usb.TODO +BEDOCS += mustek_usb2/mustek_usb2.CHANGES mustek_usb2/mustek_usb2.TODO +BEDOCS += niash/niash.TODO +BEDOCS += plustek/FAQ plustek/MakeModule.sh plustek/Makefile.kernel24 \ + plustek/Makefile.kernel26 plustek/Plustek-PARPORT-TODO.txt \ + plustek/Plustek-PARPORT.changes plustek/Plustek-PARPORT.txt \ + plustek/Plustek-USB-TODO.txt plustek/Plustek-USB.changes \ + plustek/Plustek-USB.txt +BEDOCS += sceptre/s1200.txt +BEDOCS += teco/teco1.txt teco/teco2.txt teco/teco3.txt +BEDOCS += u12/U12.changes u12/U12.todo +BEDOCS += umax/negative-types.txt umax/sane-logo.jpg \ + umax/sane-umax-advanced-options-doc.html \ + umax/sane-umax-advanced.jpg umax/sane-umax-astra-doc.html \ + umax/sane-umax-config-doc.html umax/sane-umax-doc.html \ + umax/sane-umax-histogram.jpg umax/sane-umax-mirage-doc.html \ + umax/sane-umax-not-listed-doc.html umax/sane-umax-others-doc.html \ + umax/sane-umax-parport-doc.html umax/sane-umax-powerlook-doc.html \ + umax/sane-umax-scanner-clones-doc.html umax/sane-umax-speed-doc.html \ + umax/sane-umax-standard-options-doc.html \ + umax/sane-umax-standard.jpg umax/sane-umax-text.jpg \ + umax/sane-umax-text2.jpg umax/sane-umax-text4.jpg \ + umax/sane-umax-uc-doc.html umax/sane-umax-vista-doc.html \ + umax/sane-umax.jpg umax/umax.BUGS umax/umax.CHANGES umax/umax.FAQ \ + umax/umax.TODO + +EXTRA_DIST += $(BEDOCS) sane.tex net.tex html.sty + +install-bedocs: $(BEDOCS) + @list='$(BEDOCS)'; \ + doc_files=`for file in $$list; do echo $$file; done`; \ + case $$doc_files in \ + */*) $(MKDIR_P) `echo "$$doc_files" | \ + sed 's|^|$(DESTDIR)$(docdir)/|;s,/[^/]*$$,,' | \ + sort -u` ; \ + esac; \ + for doc in $$doc_files; do \ + echo "installing $(srcdir)/$${doc} in $(docdir)/$${doc}..."; \ + $(INSTALL_DATA) $(srcdir)/$${doc} $(DESTDIR)$(docdir)/$${doc} \ + || exit 1; \ + done + +EXTRA_DIST += descriptions/abaton.desc descriptions/agfafocus.desc \ + descriptions/apple.desc descriptions/artec.desc \ + descriptions/artec_eplus48u.desc descriptions/as6e.desc \ + descriptions/avision.desc descriptions/bh.desc descriptions/canon630u.desc \ + descriptions/canon.desc descriptions/canon_dr.desc \ + descriptions/canon_pp.desc descriptions/cardscan.desc \ + descriptions/coolscan2.desc descriptions/coolscan.desc \ + descriptions/dc210.desc descriptions/dc240.desc descriptions/dc25.desc \ + descriptions/dell1600n_net.desc descriptions/dll.desc descriptions/dmc.desc \ + descriptions/epjitsu.desc descriptions/epson2.desc descriptions/epson.desc \ + descriptions/fujitsu.desc descriptions/genesys.desc \ + descriptions/gphoto2.desc descriptions/gt68xx.desc descriptions/hp3500.desc \ + descriptions/hp3900.desc descriptions/hp4200.desc descriptions/hp5400.desc \ + descriptions/hp5590.desc descriptions/hp.desc descriptions/hpljm1005.desc \ + descriptions/hpsj5s.desc descriptions/hs2p.desc descriptions/ibm.desc \ + descriptions/leo.desc descriptions/lexmark.desc descriptions/ma1509.desc \ + descriptions/matsushita.desc descriptions/microtek2.desc \ + descriptions/microtek.desc descriptions/mustek.desc \ + descriptions/mustek_pp.desc descriptions/mustek_usb2.desc \ + descriptions/mustek_usb.desc descriptions/nec.desc descriptions/net.desc \ + descriptions/niash.desc descriptions/pie.desc descriptions/pint.desc \ + descriptions/pixma.desc descriptions/plustek.desc \ + descriptions/plustek_pp.desc descriptions/pnm.desc descriptions/qcam.desc \ + descriptions/ricoh.desc descriptions/rts8891.desc descriptions/s9036.desc \ + descriptions/sceptre.desc descriptions/sharp.desc descriptions/sm3600.desc \ + descriptions/sm3840.desc descriptions/snapscan.desc descriptions/sp15c.desc \ + descriptions/st400.desc descriptions/stv680.desc descriptions/tamarack.desc \ + descriptions/teco1.desc descriptions/teco2.desc descriptions/teco3.desc \ + descriptions/template.desc. descriptions/test.desc descriptions/u12.desc \ + descriptions/umax1220u.desc descriptions/umax.desc \ + descriptions/umax_pp.desc descriptions/unsupported.desc \ + descriptions/v4l.desc descriptions/xerox_mfp.desc + +EXTRA_DIST += descriptions-external/brother2.desc \ + descriptions-external/brother.desc \ + descriptions-external/brother-mfc4600.desc \ + descriptions-external/canon_mfp.desc \ + descriptions-external/cs3200f.desc \ + descriptions-external/epkowa.desc \ + descriptions-external/geniusvp2.desc \ + descriptions-external/hp3770.desc \ + descriptions-external/hp8200.desc \ + descriptions-external/hpaio.desc \ + descriptions-external/hpoj.desc \ + descriptions-external/lhii.desc \ + descriptions-external/mustek_a3p1.desc \ + descriptions-external/primascan.desc \ + descriptions-external/primax.desc \ + descriptions-external/samsung.desc \ + descriptions-external/scanwit.desc \ + descriptions-external/template.desc. \ + descriptions-external/v4l2.desc \ + descriptions-external/viceo.desc + +EXTRA_DIST += figs/area.eps figs/area.fig figs/flow.eps figs/flow.fig \ + figs/hierarchy.eps figs/hierarchy.fig figs/image-data.eps \ + figs/image-data.fig figs/xfer.eps figs/xfer.fig + +EXTRA_DIST += icons/contents.gif icons/index.gif icons/next.gif \ + icons/next_gr.gif icons/previous.gif icons/previous_gr.gif \ + icons/references.gif icons/references_gr.gif icons/up.gif icons/up_gr.gif + +install-data-local: install-beman5 install-bedocs + +uninstall-local: + rm -rf $(DESTDIR)$(docdir) + rm -rf $(DESTDIR)$(beman5dir)/sane-*.5 + +sane.ind: $(srcdir)/sane.tex + @echo Generating index for sane.tex... + @touch sane.ind + @$(LATEX) $(srcdir)/sane /dev/null && \ + $(MAKEINDEX) sane.idx 2>/dev/null && \ + $(LATEX) $(srcdir)/sane /dev/null + +sane.dvi: sane.ind + @echo Generating sane.dvi from sane.tex... + @$(LATEX) $(srcdir)/sane /dev/null + +sane.ps: sane.dvi + @echo Generating sane.ps from sane.dvi... + @$(DVIPS) sane.dvi -o sane.ps 2>/dev/null + +sane-html: sane.dvi + $(DLH) $(srcdir)/sane.tex + +html-man: $(MANPAGES) + @for page in $(MANPAGES); do \ + echo "translating $${page} to $${page}.html..."; \ + cat $${page} | $(MAN2HTML) > $${page}.html; \ + done + +../tools/sane-desc: + cd ../tools ; $(MAKE) sane-desc + +sane-backends.html: $(wildcard descriptions/*.desc) ../tools/sane-desc + @../tools/sane-desc -m html-backends-split -s ${srcdir}/descriptions \ + -i "The following table summarizes the backends/drivers distributed \ + with $(PACKAGE)-$(VERSION), and the hardware or software they \ + support." -d 0 > sane-backends.html + +sane-backends-external.html: $(wildcard descriptions-external/*.desc) \ + ../tools/sane-desc + @../tools/sane-desc -m html-backends-split \ + -s ${srcdir}/descriptions-external \ + -i "The following table summarizes the backends/drivers that \ + have not yet been included in the SANE distribution, and the \ + hardware or software they support." \ + -t "SANE: External Backends (Drivers)" -d 0 \ + > sane-backends-external.html + +sane-mfgs.html: $(wildcard descriptions/*.desc) ../tools/sane-desc + @../tools/sane-desc -m html-mfgs -s ${srcdir}/descriptions \ + -i "The following table summarizes the devices supported \ + by $(PACKAGE)-$(VERSION)." \ + -d 0 > sane-mfgs.html + +sane-mfgs-external.html: $(wildcard descriptions-external/*.desc) \ + ../tools/sane-desc + @../tools/sane-desc -m html-mfgs -s ${srcdir}/descriptions-external \ + -i "The following table summarizes the devices that \ + are supported by external backends." \ + -t "SANE: Devices Supported by External Backends" -d 0 \ + > sane-mfgs-external.html + +html-pages: $(HTML_PAGES) +html: html-pages html-man sane-html + +clean-local: + rm -f *.toc *.aux *.log *.cp *.fn *.tp *.vr *.pg *.ky *.blg *.idx *.cb + rm -f *.ilg + +distclean-local: + rm -f $(MANPAGES) + rm -f *.lot *.lof *.ind + rm -f sane.dvi sane.ps sane-backends.html sane-backends-external.html + rm -f sane-mfgs.html sane-mfgs-external.html + rm -f sane/*.html sane/*.gif + rm -f doxygen-sanei.conf + -rm -rf sane sanei-html + for manpage in $(MANPAGES) ; do \ + rm -f $${manpage}.html ; \ + done diff --git a/doc/Makefile.in b/doc/Makefile.in index f90cf12cd..00fd536e3 100644 --- a/doc/Makefile.in +++ b/doc/Makefile.in @@ -1,211 +1,809 @@ -SHELL = /bin/sh +# Makefile.in generated by automake 1.10.1 from Makefile.am. +# @configure_input@ -VPATH = @srcdir@ -srcdir = @srcdir@ -top_srcdir = @top_srcdir@ -top_builddir = .. +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, +# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. -PACKAGE = @PACKAGE@ -VERSION = @VERSION@ -package_version = @PACKAGE_STRING@ -distdir = $(top_srcdir)/$(PACKAGE)-$(VERSION)/doc +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. -prefix = @prefix@ -exec_prefix = @exec_prefix@ -bindir = @bindir@ -sbindir = @sbindir@ -libexecdir = @libexecdir@ -datarootdir = @datarootdir@ -datadir = @datadir@ -sysconfdir = @sysconfdir@ -sharedstatedir = @sharedstatedir@ -localstatedir = @localstatedir@ -libdir = @libdir@ -infodir = @infodir@ -mandir = @mandir@ -includedir = @includedir@ -oldincludedir = /usr/include -configdir = ${sysconfdir}/sane.d -docdir = @docdir@ +@SET_MAKE@ -MKDIR = $(top_srcdir)/mkinstalldirs +VPATH = @srcdir@ +pkgdatadir = $(datadir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkgincludedir = $(includedir)/@PACKAGE@ +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = @build@ +host_triplet = @host@ +subdir = doc +DIST_COMMON = $(dist_doc_DATA) $(srcdir)/Makefile.am \ + $(srcdir)/Makefile.in $(srcdir)/doxygen-sanei.conf.in +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \ + $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/byteorder.m4 \ + $(top_srcdir)/m4/stdint.m4 $(top_srcdir)/configure.in +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs +CONFIG_HEADER = $(top_builddir)/include/sane/config.h +CONFIG_CLEAN_FILES = doxygen-sanei.conf +SOURCES = +DIST_SOURCES = +man1dir = $(mandir)/man1 +am__installdirs = "$(DESTDIR)$(man1dir)" "$(DESTDIR)$(man7dir)" \ + "$(DESTDIR)$(man8dir)" "$(DESTDIR)$(docdir)" \ + "$(DESTDIR)$(docdir)" +man7dir = $(mandir)/man7 +man8dir = $(mandir)/man8 +NROFF = nroff +MANS = $(man1_MANS) $(man7_MANS) $(man8_MANS) +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; +am__vpath_adj = case $$p in \ + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ + *) f=$$p;; \ + esac; +am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; +dist_docDATA_INSTALL = $(INSTALL_DATA) +docDATA_INSTALL = $(INSTALL_DATA) +DATA = $(dist_doc_DATA) $(doc_DATA) +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +ACLOCAL = @ACLOCAL@ +ALLOCA = @ALLOCA@ +AMTAR = @AMTAR@ +AR = @AR@ +AS = @AS@ +AUTOCONF = @AUTOCONF@ +AUTOHEADER = @AUTOHEADER@ +AUTOMAKE = @AUTOMAKE@ +AVAHI_CFLAGS = @AVAHI_CFLAGS@ +AVAHI_LIBS = @AVAHI_LIBS@ +AWK = @AWK@ +BACKEND_CONFS_ENABLED = @BACKEND_CONFS_ENABLED@ +BACKEND_LIBS_ENABLED = @BACKEND_LIBS_ENABLED@ + +# Create a list of man pages for only backends that are compiled in so +# that is all that gets installed. Also, build a complete list of all +# backend man pages. This allows a user to optionally generate all +# man pages in HTML form for things like posting to a web site. +# +# Backend man pages bypass standard automake man5_MANS because there is not +# a man page for every supported backend. We could get rid of +# custom install/uninstall if we required man pages for every backend. +BACKEND_MANS_ENABLED = @BACKEND_MANS_ENABLED@ +CC = @CC@ +CCDEPMODE = @CCDEPMODE@ +CFLAGS = @CFLAGS@ +CPP = @CPP@ +CPPFLAGS = @CPPFLAGS@ +CROSS_COMPILING = @CROSS_COMPILING@ +CXX = @CXX@ +CXXCPP = @CXXCPP@ +CXXDEPMODE = @CXXDEPMODE@ +CXXFLAGS = @CXXFLAGS@ +CYGPATH_W = @CYGPATH_W@ +DEFS = @DEFS@ +DEPDIR = @DEPDIR@ +DISTCLEAN_FILES = @DISTCLEAN_FILES@ +DLLTOOL = @DLLTOOL@ +DL_LIBS = @DL_LIBS@ +DSYMUTIL = @DSYMUTIL@ +DVIPS = @DVIPS@ +DYNAMIC_FLAG = @DYNAMIC_FLAG@ +ECHO = @ECHO@ +ECHO_C = @ECHO_C@ +ECHO_N = @ECHO_N@ +ECHO_T = @ECHO_T@ +EGREP = @EGREP@ +EXEEXT = @EXEEXT@ +F77 = @F77@ +FFLAGS = @FFLAGS@ +GPHOTO2_CPPFLAGS = @GPHOTO2_CPPFLAGS@ +GPHOTO2_LIBS = @GPHOTO2_LIBS@ +GREP = @GREP@ +HAVE_GPHOTO2 = @HAVE_GPHOTO2@ +IEEE1284_LIBS = @IEEE1284_LIBS@ +INCLUDES = @INCLUDES@ INSTALL = @INSTALL@ -INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_DATA = @INSTALL_DATA@ +INSTALL_LOCKPATH = @INSTALL_LOCKPATH@ +INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_SCRIPT = @INSTALL_SCRIPT@ +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ +INSTALL_TRANSLATIONS = @INSTALL_TRANSLATIONS@ +JPEG_LIBS = @JPEG_LIBS@ +LATEX = TEXINPUTS=$(srcdir):$$TEXINPUTS @LATEX@ +LDFLAGS = @LDFLAGS@ +LIBOBJS = @LIBOBJS@ +LIBS = @LIBS@ +LIBTOOL = @LIBTOOL@ +LIBV4L_CFLAGS = @LIBV4L_CFLAGS@ +LIBV4L_LIBS = @LIBV4L_LIBS@ +LINKER_RPATH = @LINKER_RPATH@ LN_S = @LN_S@ - -DISTCLEAN_FILES = @DISTCLEAN_FILES@ - -@SET_MAKE@ - -SECT1 = scanimage.1 sane-config.1 sane-find-scanner.1 gamma4scanimage.1 -SECT5 = sane-abaton.5 sane-agfafocus.5 sane-apple.5 sane-as6e.5 sane-dll.5 \ - sane-dc25.5 sane-dmc.5 sane-epson.5 sane-epson2.5 sane-hp.5 sane-gphoto2.5 \ - sane-leo.5 sane-lexmark.5 sane-matsushita.5 sane-microtek.5 \ - sane-microtek2.5 sane-mustek.5 sane-nec.5 sane-net.5 sane-pie.5 \ - sane-pint.5 sane-pnm.5 sane-umax.5 sane-qcam.5 sane-scsi.5 \ - sane-artec.5 sane-fujitsu.5 sane-sharp.5 sane-s9036.5 \ - sane-tamarack.5 sane-ricoh.5 sane-avision.5 sane-plustek.5 \ - sane-st400.5 sane-mustek_pp.5 sane-dc210.5 sane-v4l.5 \ - sane-snapscan.5 sane-canon.5 sane-coolscan.5 sane-bh.5 sane-dc240.5 \ - sane-umax_pp.5 sane-umax1220u.5 sane-sm3600.5 sane-usb.5 \ - sane-mustek_usb.5 sane-sceptre.5 sane-canon_pp.5 sane-canon630u.5 \ - sane-teco1.5 sane-teco2.5 sane-teco3.5 sane-test.5 sane-sp15c.5 \ - sane-coolscan2.5 sane-hpsj5s.5 sane-gt68xx.5 sane-artec_eplus48u.5 \ - sane-ma1509.5 sane-ibm.5 sane-hp5400.5 sane-plustek_pp.5 sane-u12.5 \ - sane-niash.5 sane-sm3840.5 sane-genesys.5 sane-hp4200.5 \ - sane-mustek_usb2.5 sane-hp3500.5 sane-pixma.5 sane-stv680.5 \ - sane-hp5590.5 sane-hpljm1005.5 sane-cardscan.5 sane-hp3900.5 \ - sane-epjitsu.5 sane-hs2p.5 sane-canon_dr.5 sane-xerox_mfp.5 \ - sane-rts8891.5 -SECT7 = sane.7 -SECT8 = saned.8 -MANPAGES = $(SECT1) $(SECT5) $(SECT7) $(SECT8) -READMES = README AUTHORS COPYING ChangeLog LICENSE NEWS PROBLEMS \ - PROJECTS README README.aix README.beos README.darwin README.freebsd \ - README.djpeg \ - README.hp-ux README.linux README.netbsd README.openbsd README.os2 \ - README.solaris README.unixware2 README.unixware7 README.windows README.zeta -DOCS = backend-writing.txt sane.ps sane.dvi -BACKDIRS= canon leo matsushita mustek mustek_usb plustek u12 umax sceptre teco \ - gt68xx niash mustek_usb2 -LATEX = TEXINPUTS=$(srcdir):$$TEXINPUTS @LATEX@ -DVIPS = @DVIPS@ +LOCKPATH_GROUP = @LOCKPATH_GROUP@ +LTLIBOBJS = @LTLIBOBJS@ +MAINT = @MAINT@ MAKEINDEX = @MAKEINDEX@ -DLH = TEXINPUTS=$(srcdir):$$TEXINPUTS dlh -MAN2HTML= nroff -man |\ +MAKEINFO = @MAKEINFO@ +MATH_LIB = @MATH_LIB@ +MKDIR_P = @MKDIR_P@ +MSGFMT = @MSGFMT@ +MSGMERGE = @MSGMERGE@ +NMEDIT = @NMEDIT@ +NUMBER_VERSION = @NUMBER_VERSION@ +OBJDUMP = @OBJDUMP@ +OBJEXT = @OBJEXT@ +PACKAGE = @PACKAGE@ +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ +PACKAGE_NAME = @PACKAGE_NAME@ +PACKAGE_STRING = @PACKAGE_STRING@ +PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_VERSION = @PACKAGE_VERSION@ +PATH_SEPARATOR = @PATH_SEPARATOR@ +PKG_CONFIG = @PKG_CONFIG@ +PRELOADABLE_BACKENDS = @PRELOADABLE_BACKENDS@ +PRELOADABLE_BACKENDS_ENABLED = @PRELOADABLE_BACKENDS_ENABLED@ +PTHREAD_LIBS = @PTHREAD_LIBS@ +RANLIB = @RANLIB@ +SANED = @SANED@ +SANEI_JPEG = @SANEI_JPEG@ +SANEI_JPEG_LO = @SANEI_JPEG_LO@ +SANEI_SANEI_JPEG_LO = @SANEI_SANEI_JPEG_LO@ +SANE_CONFIG_PATH = @SANE_CONFIG_PATH@ +SCSI_LIBS = @SCSI_LIBS@ +SED = @SED@ +SET_MAKE = @SET_MAKE@ +SHELL = @SHELL@ +SOCKET_LIBS = @SOCKET_LIBS@ +STRICT_LDFLAGS = @STRICT_LDFLAGS@ +STRIP = @STRIP@ +SYSLOG_LIBS = @SYSLOG_LIBS@ +TIFF_LIBS = @TIFF_LIBS@ +USB_LIBS = @USB_LIBS@ +VERSION = @VERSION@ +V_MAJOR = @V_MAJOR@ +V_MINOR = @V_MINOR@ +V_REV = @V_REV@ +XGETTEXT = @XGETTEXT@ +abs_builddir = @abs_builddir@ +abs_srcdir = @abs_srcdir@ +abs_top_builddir = @abs_top_builddir@ +abs_top_srcdir = @abs_top_srcdir@ +ac_ct_CC = @ac_ct_CC@ +ac_ct_CXX = @ac_ct_CXX@ +ac_ct_F77 = @ac_ct_F77@ +am__include = @am__include@ +am__leading_dot = @am__leading_dot@ +am__quote = @am__quote@ +am__tar = @am__tar@ +am__untar = @am__untar@ +bindir = @bindir@ +build = @build@ +build_alias = @build_alias@ +build_cpu = @build_cpu@ +build_os = @build_os@ +build_vendor = @build_vendor@ +builddir = @builddir@ +datadir = @datadir@ +datarootdir = @datarootdir@ +docdir = @docdir@ +dvidir = @dvidir@ +effective_target = @effective_target@ +exec_prefix = @exec_prefix@ +host = @host@ +host_alias = @host_alias@ +host_cpu = @host_cpu@ +host_os = @host_os@ +host_vendor = @host_vendor@ +htmldir = @htmldir@ +includedir = @includedir@ +infodir = @infodir@ +install_sh = @install_sh@ +libdir = @libdir@ +libexecdir = @libexecdir@ +localedir = @localedir@ +localstatedir = @localstatedir@ +locksanedir = @locksanedir@ +mandir = @mandir@ +mkdir_p = @mkdir_p@ +oldincludedir = @oldincludedir@ +pdfdir = @pdfdir@ +prefix = @prefix@ +program_transform_name = @program_transform_name@ +psdir = @psdir@ +sbindir = @sbindir@ +sharedstatedir = @sharedstatedir@ +srcdir = @srcdir@ +sysconfdir = @sysconfdir@ +target_alias = @target_alias@ +top_build_prefix = @top_build_prefix@ +top_builddir = @top_builddir@ +top_srcdir = @top_srcdir@ +man1_MANS = scanimage.1 sane-config.1 sane-find-scanner.1 gamma4scanimage.1 +EXTRA_DIST = scanimage.man sane-config.man sane-find-scanner.man \ + gamma4scanimage.man sane-abaton.man sane-agfafocus.man \ + sane-apple.man sane-as6e.man sane-dll.man sane-dc25.man \ + sane-dmc.man sane-epson.man sane-epson2.man sane-hp.man \ + sane-gphoto2.man sane-leo.man sane-lexmark.man \ + sane-matsushita.man sane-microtek.man sane-microtek2.man \ + sane-mustek.man sane-nec.man sane-net.man sane-pie.man \ + sane-pint.man sane-pnm.man sane-umax.man sane-qcam.man \ + sane-scsi.man sane-artec.man sane-fujitsu.man sane-sharp.man \ + sane-s9036.man sane-tamarack.man sane-ricoh.man \ + sane-avision.man sane-plustek.man sane-st400.man \ + sane-mustek_pp.man sane-dc210.man sane-v4l.man \ + sane-snapscan.man sane-canon.man sane-coolscan.man sane-bh.man \ + sane-dc240.man sane-umax_pp.man sane-umax1220u.man \ + sane-sm3600.man sane-usb.man sane-mustek_usb.man \ + sane-sceptre.man sane-canon_pp.man sane-canon630u.man \ + sane-teco1.man sane-teco2.man sane-teco3.man sane-test.man \ + sane-sp15c.man sane-coolscan2.man sane-hpsj5s.man \ + sane-gt68xx.man sane-artec_eplus48u.man sane-ma1509.man \ + sane-ibm.man sane-hp5400.man sane-plustek_pp.man sane-u12.man \ + sane-niash.man sane-sm3840.man sane-genesys.man \ + sane-hp4200.man sane-mustek_usb2.man sane-hp3500.man \ + sane-pixma.man sane-stv680.man sane-hp5590.man \ + sane-hpljm1005.man sane-cardscan.man sane-hp3900.man \ + sane-epjitsu.man sane-hs2p.man sane-canon_dr.man \ + sane-xerox_mfp.man sane-rts8891.man sane.man saned.man \ + descriptions.txt releases.txt sane-logo2.jpg sane-logo.png \ + sane.png $(BEDOCS) sane.tex net.tex html.sty \ + descriptions/abaton.desc descriptions/agfafocus.desc \ + descriptions/apple.desc descriptions/artec.desc \ + descriptions/artec_eplus48u.desc descriptions/as6e.desc \ + descriptions/avision.desc descriptions/bh.desc \ + descriptions/canon630u.desc descriptions/canon.desc \ + descriptions/canon_dr.desc descriptions/canon_pp.desc \ + descriptions/cardscan.desc descriptions/coolscan2.desc \ + descriptions/coolscan.desc descriptions/dc210.desc \ + descriptions/dc240.desc descriptions/dc25.desc \ + descriptions/dell1600n_net.desc descriptions/dll.desc \ + descriptions/dmc.desc descriptions/epjitsu.desc \ + descriptions/epson2.desc descriptions/epson.desc \ + descriptions/fujitsu.desc descriptions/genesys.desc \ + descriptions/gphoto2.desc descriptions/gt68xx.desc \ + descriptions/hp3500.desc descriptions/hp3900.desc \ + descriptions/hp4200.desc descriptions/hp5400.desc \ + descriptions/hp5590.desc descriptions/hp.desc \ + descriptions/hpljm1005.desc descriptions/hpsj5s.desc \ + descriptions/hs2p.desc descriptions/ibm.desc \ + descriptions/leo.desc descriptions/lexmark.desc \ + descriptions/ma1509.desc descriptions/matsushita.desc \ + descriptions/microtek2.desc descriptions/microtek.desc \ + descriptions/mustek.desc descriptions/mustek_pp.desc \ + descriptions/mustek_usb2.desc descriptions/mustek_usb.desc \ + descriptions/nec.desc descriptions/net.desc \ + descriptions/niash.desc descriptions/pie.desc \ + descriptions/pint.desc descriptions/pixma.desc \ + descriptions/plustek.desc descriptions/plustek_pp.desc \ + descriptions/pnm.desc descriptions/qcam.desc \ + descriptions/ricoh.desc descriptions/rts8891.desc \ + descriptions/s9036.desc descriptions/sceptre.desc \ + descriptions/sharp.desc descriptions/sm3600.desc \ + descriptions/sm3840.desc descriptions/snapscan.desc \ + descriptions/sp15c.desc descriptions/st400.desc \ + descriptions/stv680.desc descriptions/tamarack.desc \ + descriptions/teco1.desc descriptions/teco2.desc \ + descriptions/teco3.desc descriptions/template.desc. \ + descriptions/test.desc descriptions/u12.desc \ + descriptions/umax1220u.desc descriptions/umax.desc \ + descriptions/umax_pp.desc descriptions/unsupported.desc \ + descriptions/v4l.desc descriptions/xerox_mfp.desc \ + descriptions-external/brother2.desc \ + descriptions-external/brother.desc \ + descriptions-external/brother-mfc4600.desc \ + descriptions-external/canon_mfp.desc \ + descriptions-external/cs3200f.desc \ + descriptions-external/epkowa.desc \ + descriptions-external/geniusvp2.desc \ + descriptions-external/hp3770.desc \ + descriptions-external/hp8200.desc \ + descriptions-external/hpaio.desc \ + descriptions-external/hpoj.desc \ + descriptions-external/lhii.desc \ + descriptions-external/mustek_a3p1.desc \ + descriptions-external/primascan.desc \ + descriptions-external/primax.desc \ + descriptions-external/samsung.desc \ + descriptions-external/scanwit.desc \ + descriptions-external/template.desc. \ + descriptions-external/v4l2.desc \ + descriptions-external/viceo.desc figs/area.eps figs/area.fig \ + figs/flow.eps figs/flow.fig figs/hierarchy.eps \ + figs/hierarchy.fig figs/image-data.eps figs/image-data.fig \ + figs/xfer.eps figs/xfer.fig icons/contents.gif icons/index.gif \ + icons/next.gif icons/next_gr.gif icons/previous.gif \ + icons/previous_gr.gif icons/references.gif \ + icons/references_gr.gif icons/up.gif icons/up_gr.gif +BACKEND_5MANS = sane-abaton.5 sane-agfafocus.5 sane-apple.5 sane-as6e.5 \ + sane-dll.5 sane-dc25.5 sane-dmc.5 sane-epson.5 sane-epson2.5 \ + sane-hp.5 sane-gphoto2.5 sane-leo.5 sane-lexmark.5 \ + sane-matsushita.5 sane-microtek.5 sane-microtek2.5 sane-mustek.5 \ + sane-nec.5 sane-net.5 sane-pie.5 sane-pint.5 sane-pnm.5 \ + sane-umax.5 sane-qcam.5 sane-scsi.5 sane-artec.5 \ + sane-fujitsu.5 sane-sharp.5 sane-s9036.5 sane-tamarack.5 \ + sane-ricoh.5 sane-avision.5 sane-plustek.5 sane-st400.5 \ + sane-mustek_pp.5 sane-dc210.5 sane-v4l.5 sane-snapscan.5 \ + sane-canon.5 sane-coolscan.5 sane-bh.5 sane-dc240.5 \ + sane-umax_pp.5 sane-umax1220u.5 sane-sm3600.5 sane-usb.5 \ + sane-mustek_usb.5 sane-sceptre.5 sane-canon_pp.5 sane-canon630u.5 \ + sane-teco1.5 sane-teco2.5 sane-teco3.5 sane-test.5 sane-sp15c.5 \ + sane-coolscan2.5 sane-hpsj5s.5 sane-gt68xx.5 sane-artec_eplus48u.5 \ + sane-ma1509.5 sane-ibm.5 sane-hp5400.5 sane-plustek_pp.5 sane-u12.5 \ + sane-niash.5 sane-sm3840.5 sane-genesys.5 sane-hp4200.5 \ + sane-mustek_usb2.5 sane-hp3500.5 sane-pixma.5 sane-stv680.5 \ + sane-hp5590.5 sane-hpljm1005.5 sane-cardscan.5 sane-hp3900.5 \ + sane-epjitsu.5 sane-hs2p.5 sane-canon_dr.5 sane-xerox_mfp.5 \ + sane-rts8891.5 + +man7_MANS = sane.7 +man8_MANS = saned.8 +MANPAGES = $(man1_MANS) $(BACKEND_5MANS) $(man7_MANS) $(man8_MANS) +@CROSS_COMPILING_FALSE@HTML_PAGES = sane-backends.html sane-backends-external.html \ +@CROSS_COMPILING_FALSE@ sane-mfgs.html sane-mfgs-external.html + +@CROSS_COMPILING_TRUE@HTML_PAGES = +doc_DATA = $(HTML_PAGES) $(STANDARD) +@USE_LATEX_FALSE@STANDARD = +@USE_LATEX_TRUE@STANDARD = sane.ps +dist_doc_DATA = backend-writing.txt +DLH = TEXINPUTS=$(srcdir):$$TEXINPUTS dlh +MAN2HTML = nroff -man |\ man2html -compress -topm 6 -botm 6 -nodepage -title $${page} \ -cgiurl '$$title.$$section.html'|\ sed 's,,

,' -ifeq (@CROSS_COMPILING@,no) -HTML_PAGES = sane-backends.html sane-backends-external.html \ - sane-mfgs.html sane-mfgs-external.html -else -HTML_PAGES = -endif - -ifeq (@USE_LATEX@,no) -STANDARD = -else -STANDARD = sane.ps -endif - -SUBDIRS = $(BACKDIRS) icons figs descriptions descriptions-external - -DISTFILES = Makefile.in backend-writing.txt descriptions.txt \ - doxygen-sanei.conf.in html.sty net.tex \ - releases.txt sane-abaton.man sane-agfafocus.man sane-apple.man \ - sane-artec.man sane-as6e.man sane-avision.man sane-bh.man \ - sane-canon.man sane-canon630u.man sane-config.man sane-coolscan.man \ - sane-coolscan2.man sane-dc210.man sane-dc240.man \ - sane-dc25.man sane-dll.man sane-dmc.man sane-epson.man sane-epson2.man \ - sane-find-scanner.man sane-fujitsu.man sane-gphoto2.man sane-hp.man \ - sane-logo.png sane-logo2.jpg sane-matsushita.man sane-microtek.man \ - sane-leo.man sane-lexmark.man sane-microtek2.man \ - sane-mustek.man sane-mustek_pp.man sane-mustek_usb.man sane-nec.man \ - sane-net.man sane-pie.man sane-pint.man sane-plustek.man \ - sane-pnm.man sane-qcam.man sane-ricoh.man sane-s9036.man \ - sane-scsi.man sane-sharp.man sane-sm3600.man sane-snapscan.man \ - sane-st400.man sane-tamarack.man sane-umax.man sane-umax1220u.man \ - sane-umax_pp.man sane-usb.man sane-v4l.man sane.man sane.png \ - sane.tex saned.man scanimage.man sane-sceptre.man sane-canon_pp.man \ - sane-teco1.man sane-teco2.man sane-teco3.man sane-test.man sane-sp15c.man \ - sane-hpsj5s.man gamma4scanimage.man sane-gt68xx.man sane-artec_eplus48u.man \ - sane-ma1509.man sane-ibm.man sane-hp5400.man sane-plustek_pp.man \ - sane-u12.man sane-niash.man sane-sm3840.man sane-genesys.man sane-hp4200.man \ - sane-mustek_usb2.man sane-hp3500.man sane-pixma.man sane-stv680.man \ - sane-hp5590.man sane-hpljm1005.man sane-cardscan.man sane-hp3900.man \ - sane-epjitsu.man sane-hs2p.man sane-canon_dr.man sane-xerox_mfp.man \ - sane-rts8891.man - -.PHONY: all clean depend dist distdir distclean html html-man install \ - sane-html uninstall - -all: $(STANDARD) $(MANPAGES) html-pages - -%.1 %.5 %.7 %.8: %.man - @sed -e 's|@DATADIR@|$(datadir)|g' \ - -e 's|@CONFIGDIR@|$(configdir)|g' \ - -e 's|@DOCDIR@|$(docdir)|g' \ - -e 's|@LIBDIR@|$(libdir)/sane|g' \ - -e 's|@BINDIR@|$(bindir)|g' \ - -e 's|@SBINDIR@|$(sbindir)|g' \ - -e 's|@PACKAGEVERSION@|$(package_version)|g' $^ >$@ - @echo Generating manpage $@... - -install: all - $(MKDIR) $(DESTDIR)$(mandir)/man1 $(DESTDIR)$(mandir)/man5 \ - $(DESTDIR)$(mandir)/man7 $(DESTDIR)$(mandir)/man8 - @for page in $(SECT1); do \ - echo installing $${page} in $(mandir)/man1/$${page}...; \ - $(INSTALL_DATA) $${page} $(DESTDIR)$(mandir)/man1/$${page} || exit 1; \ +beman5dir = $(mandir)/man5 +BEDOCS = canon/canon.changes canon/canon.install2700F.txt \ + gt68xx/gt68xx.CHANGES gt68xx/gt68xx.TODO leo/leo.txt \ + matsushita/matsushita.txt mustek/mustek.CHANGES \ + mustek_usb/mustek_usb.CHANGES mustek_usb/mustek_usb.TODO \ + mustek_usb2/mustek_usb2.CHANGES mustek_usb2/mustek_usb2.TODO \ + niash/niash.TODO plustek/FAQ plustek/MakeModule.sh \ + plustek/Makefile.kernel24 plustek/Makefile.kernel26 \ + plustek/Plustek-PARPORT-TODO.txt \ + plustek/Plustek-PARPORT.changes plustek/Plustek-PARPORT.txt \ + plustek/Plustek-USB-TODO.txt plustek/Plustek-USB.changes \ + plustek/Plustek-USB.txt sceptre/s1200.txt teco/teco1.txt \ + teco/teco2.txt teco/teco3.txt u12/U12.changes u12/U12.todo \ + umax/negative-types.txt umax/sane-logo.jpg \ + umax/sane-umax-advanced-options-doc.html \ + umax/sane-umax-advanced.jpg umax/sane-umax-astra-doc.html \ + umax/sane-umax-config-doc.html umax/sane-umax-doc.html \ + umax/sane-umax-histogram.jpg umax/sane-umax-mirage-doc.html \ + umax/sane-umax-not-listed-doc.html \ + umax/sane-umax-others-doc.html umax/sane-umax-parport-doc.html \ + umax/sane-umax-powerlook-doc.html \ + umax/sane-umax-scanner-clones-doc.html \ + umax/sane-umax-speed-doc.html \ + umax/sane-umax-standard-options-doc.html \ + umax/sane-umax-standard.jpg umax/sane-umax-text.jpg \ + umax/sane-umax-text2.jpg umax/sane-umax-text4.jpg \ + umax/sane-umax-uc-doc.html umax/sane-umax-vista-doc.html \ + umax/sane-umax.jpg umax/umax.BUGS umax/umax.CHANGES \ + umax/umax.FAQ umax/umax.TODO +all: all-am + +.SUFFIXES: +$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ + && exit 0; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu doc/Makefile'; \ + cd $(top_srcdir) && \ + $(AUTOMAKE) --gnu doc/Makefile +.PRECIOUS: Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +doxygen-sanei.conf: $(top_builddir)/config.status $(srcdir)/doxygen-sanei.conf.in + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ + +mostlyclean-libtool: + -rm -f *.lo + +clean-libtool: + -rm -rf .libs _libs +install-man1: $(man1_MANS) $(man_MANS) + @$(NORMAL_INSTALL) + test -z "$(man1dir)" || $(MKDIR_P) "$(DESTDIR)$(man1dir)" + @list='$(man1_MANS) $(dist_man1_MANS) $(nodist_man1_MANS)'; \ + l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \ + for i in $$l2; do \ + case "$$i" in \ + *.1*) list="$$list $$i" ;; \ + esac; \ + done; \ + for i in $$list; do \ + if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \ + else file=$$i; fi; \ + ext=`echo $$i | sed -e 's/^.*\\.//'`; \ + case "$$ext" in \ + 1*) ;; \ + *) ext='1' ;; \ + esac; \ + inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \ + inst=`echo $$inst | sed -e 's/^.*\///'`; \ + inst=`echo $$inst | sed '$(transform)'`.$$ext; \ + echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man1dir)/$$inst'"; \ + $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man1dir)/$$inst"; \ done - @for page in $(SECT5); do \ - echo installing $${page} in $(mandir)/man5/$${page}...; \ - $(INSTALL_DATA) $${page} $(DESTDIR)$(mandir)/man5/$${page} || exit 1; \ +uninstall-man1: + @$(NORMAL_UNINSTALL) + @list='$(man1_MANS) $(dist_man1_MANS) $(nodist_man1_MANS)'; \ + l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \ + for i in $$l2; do \ + case "$$i" in \ + *.1*) list="$$list $$i" ;; \ + esac; \ + done; \ + for i in $$list; do \ + ext=`echo $$i | sed -e 's/^.*\\.//'`; \ + case "$$ext" in \ + 1*) ;; \ + *) ext='1' ;; \ + esac; \ + inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \ + inst=`echo $$inst | sed -e 's/^.*\///'`; \ + inst=`echo $$inst | sed '$(transform)'`.$$ext; \ + echo " rm -f '$(DESTDIR)$(man1dir)/$$inst'"; \ + rm -f "$(DESTDIR)$(man1dir)/$$inst"; \ done - @for page in $(SECT7); do \ - echo installing $${page} in $(mandir)/man7/$${page}...; \ - $(INSTALL_DATA) $${page} $(DESTDIR)$(mandir)/man7/$${page} || exit 1; \ +install-man7: $(man7_MANS) $(man_MANS) + @$(NORMAL_INSTALL) + test -z "$(man7dir)" || $(MKDIR_P) "$(DESTDIR)$(man7dir)" + @list='$(man7_MANS) $(dist_man7_MANS) $(nodist_man7_MANS)'; \ + l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \ + for i in $$l2; do \ + case "$$i" in \ + *.7*) list="$$list $$i" ;; \ + esac; \ + done; \ + for i in $$list; do \ + if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \ + else file=$$i; fi; \ + ext=`echo $$i | sed -e 's/^.*\\.//'`; \ + case "$$ext" in \ + 7*) ;; \ + *) ext='7' ;; \ + esac; \ + inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \ + inst=`echo $$inst | sed -e 's/^.*\///'`; \ + inst=`echo $$inst | sed '$(transform)'`.$$ext; \ + echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man7dir)/$$inst'"; \ + $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man7dir)/$$inst"; \ done - @for page in $(SECT8); do \ - echo installing $${page} in $(mandir)/man8/$${page}...; \ - $(INSTALL_DATA) $${page} $(DESTDIR)$(mandir)/man8/$${page} || exit 1; \ +uninstall-man7: + @$(NORMAL_UNINSTALL) + @list='$(man7_MANS) $(dist_man7_MANS) $(nodist_man7_MANS)'; \ + l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \ + for i in $$l2; do \ + case "$$i" in \ + *.7*) list="$$list $$i" ;; \ + esac; \ + done; \ + for i in $$list; do \ + ext=`echo $$i | sed -e 's/^.*\\.//'`; \ + case "$$ext" in \ + 7*) ;; \ + *) ext='7' ;; \ + esac; \ + inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \ + inst=`echo $$inst | sed -e 's/^.*\///'`; \ + inst=`echo $$inst | sed '$(transform)'`.$$ext; \ + echo " rm -f '$(DESTDIR)$(man7dir)/$$inst'"; \ + rm -f "$(DESTDIR)$(man7dir)/$$inst"; \ done - $(MKDIR) $(DESTDIR)$(docdir) - @for readme in $(READMES); do \ - echo installing $${readme} in $(docdir)/$${readme}...; \ - $(INSTALL_DATA) $(top_srcdir)/$${readme} $(DESTDIR)$(docdir)/$${readme} \ - || exit 1; \ +install-man8: $(man8_MANS) $(man_MANS) + @$(NORMAL_INSTALL) + test -z "$(man8dir)" || $(MKDIR_P) "$(DESTDIR)$(man8dir)" + @list='$(man8_MANS) $(dist_man8_MANS) $(nodist_man8_MANS)'; \ + l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \ + for i in $$l2; do \ + case "$$i" in \ + *.8*) list="$$list $$i" ;; \ + esac; \ + done; \ + for i in $$list; do \ + if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \ + else file=$$i; fi; \ + ext=`echo $$i | sed -e 's/^.*\\.//'`; \ + case "$$ext" in \ + 8*) ;; \ + *) ext='8' ;; \ + esac; \ + inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \ + inst=`echo $$inst | sed -e 's/^.*\///'`; \ + inst=`echo $$inst | sed '$(transform)'`.$$ext; \ + echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man8dir)/$$inst'"; \ + $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man8dir)/$$inst"; \ done - @for backdir in $(BACKDIRS); do \ - $(MKDIR) $(DESTDIR)$(docdir)/$${backdir} ; \ - for doc in $${backdir}/* ; do \ - if test -f $${doc} ; then \ - echo installing $${doc} in $(docdir)/$${doc}...; \ - $(INSTALL_DATA) $${doc} $(DESTDIR)$(docdir)/$${doc} \ - || exit 1; \ - fi \ - done \ +uninstall-man8: + @$(NORMAL_UNINSTALL) + @list='$(man8_MANS) $(dist_man8_MANS) $(nodist_man8_MANS)'; \ + l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \ + for i in $$l2; do \ + case "$$i" in \ + *.8*) list="$$list $$i" ;; \ + esac; \ + done; \ + for i in $$list; do \ + ext=`echo $$i | sed -e 's/^.*\\.//'`; \ + case "$$ext" in \ + 8*) ;; \ + *) ext='8' ;; \ + esac; \ + inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \ + inst=`echo $$inst | sed -e 's/^.*\///'`; \ + inst=`echo $$inst | sed '$(transform)'`.$$ext; \ + echo " rm -f '$(DESTDIR)$(man8dir)/$$inst'"; \ + rm -f "$(DESTDIR)$(man8dir)/$$inst"; \ + done +install-dist_docDATA: $(dist_doc_DATA) + @$(NORMAL_INSTALL) + test -z "$(docdir)" || $(MKDIR_P) "$(DESTDIR)$(docdir)" + @list='$(dist_doc_DATA)'; for p in $$list; do \ + if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ + f=$(am__strip_dir) \ + echo " $(dist_docDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(docdir)/$$f'"; \ + $(dist_docDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(docdir)/$$f"; \ + done + +uninstall-dist_docDATA: + @$(NORMAL_UNINSTALL) + @list='$(dist_doc_DATA)'; for p in $$list; do \ + f=$(am__strip_dir) \ + echo " rm -f '$(DESTDIR)$(docdir)/$$f'"; \ + rm -f "$(DESTDIR)$(docdir)/$$f"; \ + done +install-docDATA: $(doc_DATA) + @$(NORMAL_INSTALL) + test -z "$(docdir)" || $(MKDIR_P) "$(DESTDIR)$(docdir)" + @list='$(doc_DATA)'; for p in $$list; do \ + if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ + f=$(am__strip_dir) \ + echo " $(docDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(docdir)/$$f'"; \ + $(docDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(docdir)/$$f"; \ done - @-for doc in $(DOCS) $(HTML_PAGES); do \ - echo installing $${doc} in $(docdir)/$${doc}...; \ - $(INSTALL_DATA) $${doc} $(DESTDIR)$(docdir)/$${doc}; \ - done -uninstall: - @for page in $(SECT1); do \ - echo removing $${page} in $(mandir)/man1/$${page}...; \ - rm -f $(DESTDIR)$(mandir)/man1/$${page}; \ +uninstall-docDATA: + @$(NORMAL_UNINSTALL) + @list='$(doc_DATA)'; for p in $$list; do \ + f=$(am__strip_dir) \ + echo " rm -f '$(DESTDIR)$(docdir)/$$f'"; \ + rm -f "$(DESTDIR)$(docdir)/$$f"; \ done - @for page in $(SECT5); do \ - echo removing $${page} in $(mandir)/man5/$${page}...; \ - rm -f $(DESTDIR)$(mandir)/man5/$${page}; \ +tags: TAGS +TAGS: + +ctags: CTAGS +CTAGS: + + +distdir: $(DISTFILES) + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + list='$(DISTFILES)'; \ + dist_files=`for file in $$list; do echo $$file; done | \ + sed -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ + case $$dist_files in \ + */*) $(MKDIR_P) `echo "$$dist_files" | \ + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ + sort -u` ;; \ + esac; \ + for file in $$dist_files; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + if test -d $$d/$$file; then \ + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ + fi; \ + cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ + else \ + test -f $(distdir)/$$file \ + || cp -p $$d/$$file $(distdir)/$$file \ + || exit 1; \ + fi; \ done - @for page in $(SECT7); do \ - echo removing $${page} in $(mandir)/man7/$${page}...; \ - rm -f $(DESTDIR)$(mandir)/man7/$${page}; \ +check-am: all-am +check: check-am +all-am: Makefile $(MANS) $(DATA) +installdirs: + for dir in "$(DESTDIR)$(man1dir)" "$(DESTDIR)$(man7dir)" "$(DESTDIR)$(man8dir)" "$(DESTDIR)$(docdir)" "$(DESTDIR)$(docdir)"; do \ + test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done - @for page in $(SECT8); do \ - echo removing $${page} in $(mandir)/man8/$${page}...; \ - rm -f $(DESTDIR)$(mandir)/man8/$${page}; \ +install: install-am +install-exec: install-exec-am +install-data: install-data-am +uninstall: uninstall-am + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-am +install-strip: + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + `test -z '$(STRIP)' || \ + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." +clean: clean-am + +clean-am: clean-generic clean-libtool clean-local mostlyclean-am + +distclean: distclean-am + -rm -f Makefile +distclean-am: clean-am distclean-generic distclean-local + +dvi: dvi-am + +dvi-am: + +info: info-am + +info-am: + +install-data-am: install-data-local install-dist_docDATA \ + install-docDATA install-man + +install-dvi: install-dvi-am + +install-exec-am: + +install-html: install-html-am + +install-info: install-info-am + +install-man: install-man1 install-man7 install-man8 + +install-pdf: install-pdf-am + +install-ps: install-ps-am + +installcheck-am: + +maintainer-clean: maintainer-clean-am + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-am + +mostlyclean-am: mostlyclean-generic mostlyclean-libtool + +pdf: pdf-am + +pdf-am: + +ps: ps-am + +ps-am: + +uninstall-am: uninstall-dist_docDATA uninstall-docDATA uninstall-local \ + uninstall-man + +uninstall-man: uninstall-man1 uninstall-man7 uninstall-man8 + +.MAKE: install-am install-strip + +.PHONY: all all-am check check-am clean clean-generic clean-libtool \ + clean-local distclean distclean-generic distclean-libtool \ + distclean-local distdir dvi dvi-am html html-am info info-am \ + install install-am install-data install-data-am \ + install-data-local install-dist_docDATA install-docDATA \ + install-dvi install-dvi-am install-exec install-exec-am \ + install-html install-html-am install-info install-info-am \ + install-man install-man1 install-man7 install-man8 install-pdf \ + install-pdf-am install-ps install-ps-am install-strip \ + installcheck installcheck-am installdirs maintainer-clean \ + maintainer-clean-generic mostlyclean mostlyclean-generic \ + mostlyclean-libtool pdf pdf-am ps ps-am uninstall uninstall-am \ + uninstall-dist_docDATA uninstall-docDATA uninstall-local \ + uninstall-man uninstall-man1 uninstall-man7 uninstall-man8 + + +all: bemans $(STANDARD) html-pages + +%.1 %.5 %.7 %.8: %.man + @echo "Generating manpage $@..."; + @sed -e 's|@DATADIR@|$(datadir)|g' \ + -e 's|@CONFIGDIR@|$(configdir)|g' \ + -e 's|@DOCDIR@|$(docdir)|g' \ + -e 's|@LIBDIR@|$(libdir)/sane|g' \ + -e 's|@BINDIR@|$(bindir)|g' \ + -e 's|@SBINDIR@|$(sbindir)|g' \ + -e 's|@PACKAGEVERSION@|$(package_version)|g' $^ >$@ + +bemans: $(BACKEND_5MANS) +install-beman5: $(BACKEND_5MANS) + test -z "$(beman5dir)" || $(MKDIR_P) "$(DESTDIR)$(beman5dir)" + @list="$(BACKEND_MANS_ENABLED) sane-dll.5 sane-scsi.5 sane-usb.5"; for man in $$list; do \ + if test ! -r $${man}; then continue; fi; \ + echo "installing $${man} in $(beman5dir)/$${man}..."; \ + $(INSTALL_DATA) $${man} $(DESTDIR)$(beman5dir)/$${man} \ + || exit 1; \ done + +install-bedocs: $(BEDOCS) + @list='$(BEDOCS)'; \ + doc_files=`for file in $$list; do echo $$file; done`; \ + case $$doc_files in \ + */*) $(MKDIR_P) `echo "$$doc_files" | \ + sed 's|^|$(DESTDIR)$(docdir)/|;s,/[^/]*$$,,' | \ + sort -u` ; \ + esac; \ + for doc in $$doc_files; do \ + echo "installing $(srcdir)/$${doc} in $(docdir)/$${doc}..."; \ + $(INSTALL_DATA) $(srcdir)/$${doc} $(DESTDIR)$(docdir)/$${doc} \ + || exit 1; \ + done + +install-data-local: install-beman5 install-bedocs + +uninstall-local: rm -rf $(DESTDIR)$(docdir) + rm -rf $(DESTDIR)$(beman5dir)/sane-*.5 -sane.ind: sane.tex net.tex - @echo Generating index for sane.ps... +sane.ind: $(srcdir)/sane.tex + @echo Generating index for sane.tex... @touch sane.ind @$(LATEX) $(srcdir)/sane /dev/null && \ - $(MAKEINDEX) sane.idx 2>/dev/null + $(MAKEINDEX) sane.idx 2>/dev/null && \ + $(LATEX) $(srcdir)/sane /dev/null -sane.ps: sane.ind - @echo Generating sane.ps... - @$(LATEX) $(srcdir)/sane /dev/null && \ - $(LATEX) $(srcdir)/sane /dev/null && \ - $(DVIPS) sane.dvi -o sane.ps 2>/dev/null +sane.dvi: sane.ind + @echo Generating sane.dvi from sane.tex... + @$(LATEX) $(srcdir)/sane /dev/null -sane-html: sane.ind +sane.ps: sane.dvi + @echo Generating sane.ps from sane.dvi... + @$(DVIPS) sane.dvi -o sane.ps 2>/dev/null + +sane-html: sane.dvi $(DLH) $(srcdir)/sane.tex html-man: $(MANPAGES) @@ -219,52 +817,44 @@ html-man: $(MANPAGES) sane-backends.html: $(wildcard descriptions/*.desc) ../tools/sane-desc @../tools/sane-desc -m html-backends-split -s ${srcdir}/descriptions \ - -i "The following table summarizes the backends/drivers distributed \ - with $(PACKAGE)-$(VERSION), and the hardware or software they \ - support." -d 0 > sane-backends.html + -i "The following table summarizes the backends/drivers distributed \ + with $(PACKAGE)-$(VERSION), and the hardware or software they \ + support." -d 0 > sane-backends.html sane-backends-external.html: $(wildcard descriptions-external/*.desc) \ ../tools/sane-desc - @../tools/sane-desc -m html-backends-split -s ${srcdir}/descriptions-external \ - -i "The following table summarizes the backends/drivers that \ - have not yet been included in the SANE distribution, and the \ - hardware or software they support." \ - -t "SANE: External Backends (Drivers)" -d 0 \ - > sane-backends-external.html + @../tools/sane-desc -m html-backends-split \ + -s ${srcdir}/descriptions-external \ + -i "The following table summarizes the backends/drivers that \ + have not yet been included in the SANE distribution, and the \ + hardware or software they support." \ + -t "SANE: External Backends (Drivers)" -d 0 \ + > sane-backends-external.html sane-mfgs.html: $(wildcard descriptions/*.desc) ../tools/sane-desc @../tools/sane-desc -m html-mfgs -s ${srcdir}/descriptions \ - -i "The following table summarizes the devices supported \ - by $(PACKAGE)-$(VERSION)." \ - -d 0 > sane-mfgs.html + -i "The following table summarizes the devices supported \ + by $(PACKAGE)-$(VERSION)." \ + -d 0 > sane-mfgs.html sane-mfgs-external.html: $(wildcard descriptions-external/*.desc) \ ../tools/sane-desc @../tools/sane-desc -m html-mfgs -s ${srcdir}/descriptions-external \ - -i "The following table summarizes the devices that \ - are supported by external backends." \ - -t "SANE: Devices Supported by External Backends" -d 0 \ - > sane-mfgs-external.html + -i "The following table summarizes the devices that \ + are supported by external backends." \ + -t "SANE: Devices Supported by External Backends" -d 0 \ + > sane-mfgs-external.html html-pages: $(HTML_PAGES) - html: html-pages html-man sane-html -%.gz: % - gzip -f -c $^ >$@ - -clean: +clean-local: rm -f *.toc *.aux *.log *.cp *.fn *.tp *.vr *.pg *.ky *.blg *.idx *.cb rm -f *.ilg -distclean: clean - rm -f $(DISTCLEAN_FILES) - for subdir in $(SUBDIRS) ; do \ - ( cd $$subdir ; rm -f $(DISTCLEAN_FILES) ); \ - done +distclean-local: rm -f $(MANPAGES) - rm -f Makefile - rm -f *.lot *.lof *.ind *.gz + rm -f *.lot *.lof *.ind rm -f sane.dvi sane.ps sane-backends.html sane-backends-external.html rm -f sane-mfgs.html sane-mfgs-external.html rm -f sane/*.html sane/*.gif @@ -273,26 +863,6 @@ distclean: clean for manpage in $(MANPAGES) ; do \ rm -f $${manpage}.html ; \ done - -depend: - -dist: distdir -distdir: $(DISTFILES) - for subdir in $(SUBDIRS) ; do \ - $(MKDIR) $(distdir)/$${subdir} ; \ - for file in $${subdir}/* ; do \ - ln $(srcdir)/$$file $(distdir)/$${subdir} 2> /dev/null \ - || cp -p $(srcdir)/$$file $(distdir)/$${subdir} \ - || echo "ignoring: $$file" ; \ - done ; \ - done - for file in $(DISTFILES); do \ - ln $(srcdir)/$$file $(distdir) 2> /dev/null \ - || cp -p $(srcdir)/$$file $(distdir)/doc ; \ - done - -# Used by top level distcheck target -dvi: -check: -installcheck: -distuninstallcheck: +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.NOEXPORT: diff --git a/lib/Makefile.in b/lib/Makefile.in index 602dca941..22f54c086 100644 --- a/lib/Makefile.in +++ b/lib/Makefile.in @@ -82,6 +82,7 @@ AVAHI_LIBS = @AVAHI_LIBS@ AWK = @AWK@ BACKEND_CONFS_ENABLED = @BACKEND_CONFS_ENABLED@ BACKEND_LIBS_ENABLED = @BACKEND_LIBS_ENABLED@ +BACKEND_MANS_ENABLED = @BACKEND_MANS_ENABLED@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ @@ -95,7 +96,6 @@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ -DEPEND_RECURSIVE = @DEPEND_RECURSIVE@ DISTCLEAN_FILES = @DISTCLEAN_FILES@ DLLTOOL = @DLLTOOL@ DL_LIBS = @DL_LIBS@ @@ -136,7 +136,6 @@ LN_S = @LN_S@ LOCKPATH_GROUP = @LOCKPATH_GROUP@ LTLIBOBJS = @LTLIBOBJS@ MAINT = @MAINT@ -MAKEDEPEND = @MAKEDEPEND@ MAKEINDEX = @MAKEINDEX@ MAKEINFO = @MAKEINFO@ MATH_LIB = @MATH_LIB@ @@ -174,7 +173,6 @@ STRIP = @STRIP@ SYSLOG_LIBS = @SYSLOG_LIBS@ TIFF_LIBS = @TIFF_LIBS@ USB_LIBS = @USB_LIBS@ -USE_LATEX = @USE_LATEX@ VERSION = @VERSION@ V_MAJOR = @V_MAJOR@ V_MINOR = @V_MINOR@