kopia lustrzana https://gitlab.com/sane-project/backends
Remove SANE Standard build support
rodzic
73db94b706
commit
2db06a272e
48
configure.ac
48
configure.ac
|
@ -769,54 +769,6 @@ AC_ARG_ENABLE(parport-directio,
|
||||||
fi
|
fi
|
||||||
])
|
])
|
||||||
|
|
||||||
dnl ******************************************************************
|
|
||||||
dnl SANE API specification format conversion support
|
|
||||||
dnl ******************************************************************
|
|
||||||
AC_ARG_WITH(api-spec,
|
|
||||||
AS_HELP_STRING([--with-api-spec],
|
|
||||||
[convert API spec to supported output formats @<:@default=check@:>@]),
|
|
||||||
[],
|
|
||||||
[with_api_spec=check])
|
|
||||||
dnl Test for all tools that may be involved. These tests are fast and
|
|
||||||
dnl running them allows for the Makefile targets to be formulated such
|
|
||||||
dnl that any non-requested formats can be made using a one-off without
|
|
||||||
dnl the need to reconfigure.
|
|
||||||
AC_PATH_PROG(MAKEINDEX, makeindex, no)
|
|
||||||
AC_PATH_PROG(DVIPS, dvips, no)
|
|
||||||
AC_PATH_PROG(LATEX, latex, no)
|
|
||||||
AC_PATH_PROG(PDFLATEX, pdflatex, no)
|
|
||||||
AC_PATH_PROG(FIG2DEV, fig2dev, no)
|
|
||||||
AC_PATH_PROG(GS, gs, no)
|
|
||||||
AC_PATH_PROG(DLH, dlh, no)
|
|
||||||
AC_PATH_PROG(PPMTOGIF, ppmtogif, no)
|
|
||||||
AS_IF([test xno != "x$with_api_spec"],
|
|
||||||
[dnl Flag formats for which all required tools have been found
|
|
||||||
AS_IF([ test xno != "x$MAKEINDEX" \
|
|
||||||
&& test xno != "x$DVIPS" \
|
|
||||||
&& test xno != "x$FIG2DEV" \
|
|
||||||
&& test xno != "x$LATEX"], [with_api_ps=yes])
|
|
||||||
AS_IF([ test xno != "x$MAKEINDEX" \
|
|
||||||
&& test xno != "x$PDFLATEX" \
|
|
||||||
&& test xno != "x$FIG2DEV" \
|
|
||||||
&& test xno != "x$GS"], [with_api_pdf=yes])
|
|
||||||
AS_IF([ test xno != "x$MAKEINDEX" \
|
|
||||||
&& test xno != "x$DVIPS" \
|
|
||||||
&& test xno != "x$FIG2DEV" \
|
|
||||||
&& test xno != "x$DLH" \
|
|
||||||
&& test xno != "x$GS" \
|
|
||||||
&& test xno != "x$PPMTOFIG" ], [with_api_html=yes])
|
|
||||||
|
|
||||||
AS_IF([test xyes = "x$with_api_spec" \
|
|
||||||
&& test xyes != "x$with_api_ps" \
|
|
||||||
&& test xyes != "x$with_api_pdf" \
|
|
||||||
&& test xyes != "x$with_api_html"],
|
|
||||||
[AC_MSG_ERROR([tools to convert the API spec are missing])
|
|
||||||
])
|
|
||||||
])
|
|
||||||
AM_CONDITIONAL(WITH_API_PS, [test x$with_api_ps = xyes])
|
|
||||||
AM_CONDITIONAL(WITH_API_PDF, [test x$with_api_pdf = xyes])
|
|
||||||
AM_CONDITIONAL(WITH_API_HTML, [test x$with_api_html = xyes])
|
|
||||||
|
|
||||||
dnl ***********************************************************************
|
dnl ***********************************************************************
|
||||||
dnl Write output files
|
dnl Write output files
|
||||||
dnl ***********************************************************************
|
dnl ***********************************************************************
|
||||||
|
|
|
@ -80,11 +80,10 @@ HTML_PAGES = sane-backends.html sane-backends-external.html \
|
||||||
endif
|
endif
|
||||||
doc_DATA = $(HTML_PAGES)
|
doc_DATA = $(HTML_PAGES)
|
||||||
|
|
||||||
all: bemans $(API_SPECS) html-pages
|
all: bemans html-pages
|
||||||
|
|
||||||
dist_doc_DATA = backend-writing.txt
|
dist_doc_DATA = backend-writing.txt
|
||||||
nobase_dist_doc_DATA = $(BEDOCS)
|
nobase_dist_doc_DATA = $(BEDOCS)
|
||||||
doc_DATA += $(API_SPECS)
|
|
||||||
EXTRA_DIST += descriptions.txt releases.txt sane-logo2.jpg sane-logo.png \
|
EXTRA_DIST += descriptions.txt releases.txt sane-logo2.jpg sane-logo.png \
|
||||||
sane.png
|
sane.png
|
||||||
|
|
||||||
|
@ -215,89 +214,6 @@ install-data-local: install-beman5
|
||||||
uninstall-local:
|
uninstall-local:
|
||||||
rm -rf $(DESTDIR)$(beman5dir)/sane-*.5
|
rm -rf $(DESTDIR)$(beman5dir)/sane-*.5
|
||||||
|
|
||||||
## SANE API specification format conversion support
|
|
||||||
|
|
||||||
API_SPECS =
|
|
||||||
if WITH_API_PS
|
|
||||||
API_SPECS += sane.ps
|
|
||||||
endif
|
|
||||||
if WITH_API_PDF
|
|
||||||
API_SPECS += sane.pdf
|
|
||||||
endif
|
|
||||||
if WITH_API_HTML
|
|
||||||
API_SPECS += sane-html
|
|
||||||
endif
|
|
||||||
|
|
||||||
API_SPEC_INPUTS = $(srcdir)/sane.tex
|
|
||||||
API_SPEC_INPUTS += $(srcdir)/net.tex
|
|
||||||
EXTRA_DIST += $(API_SPEC_INPUTS)
|
|
||||||
|
|
||||||
API_SPEC_TEX_FIGS =
|
|
||||||
API_SPEC_TEX_FIGS += figs/area.fig
|
|
||||||
API_SPEC_TEX_FIGS += figs/flow.fig
|
|
||||||
API_SPEC_TEX_FIGS += figs/hierarchy.fig
|
|
||||||
API_SPEC_TEX_FIGS += figs/image-data.fig
|
|
||||||
API_SPEC_TEX_FIGS += figs/xfer.fig
|
|
||||||
EXTRA_DIST += $(API_SPEC_TEX_FIGS)
|
|
||||||
|
|
||||||
API_SPEC_EPS_FIGS =
|
|
||||||
API_SPEC_EPS_FIGS += figs/area.eps
|
|
||||||
API_SPEC_EPS_FIGS += figs/flow.eps
|
|
||||||
API_SPEC_EPS_FIGS += figs/hierarchy.eps
|
|
||||||
API_SPEC_EPS_FIGS += figs/image-data.eps
|
|
||||||
API_SPEC_EPS_FIGS += figs/xfer.eps
|
|
||||||
|
|
||||||
API_SPEC_PDF_FIGS =
|
|
||||||
API_SPEC_PDF_FIGS += figs/area.pdf
|
|
||||||
API_SPEC_PDF_FIGS += figs/flow.pdf
|
|
||||||
API_SPEC_PDF_FIGS += figs/hierarchy.pdf
|
|
||||||
API_SPEC_PDF_FIGS += figs/image-data.pdf
|
|
||||||
API_SPEC_PDF_FIGS += figs/xfer.pdf
|
|
||||||
|
|
||||||
## These icons are referred to in the generated HTML output.
|
|
||||||
API_SPEC_HTML_ICONS =
|
|
||||||
API_SPEC_HTML_ICONS += icons/contents.gif
|
|
||||||
API_SPEC_HTML_ICONS += icons/index.gif
|
|
||||||
API_SPEC_HTML_ICONS += icons/next.gif icons/next_gr.gif
|
|
||||||
API_SPEC_HTML_ICONS += icons/previous.gif icons/previous_gr.gif
|
|
||||||
API_SPEC_HTML_ICONS += icons/references.gif icons/references_gr.gif
|
|
||||||
API_SPEC_HTML_ICONS += icons/up.gif icons/up_gr.gif
|
|
||||||
EXTRA_DIST += $(API_SPEC_HTML_ICONS)
|
|
||||||
|
|
||||||
am_TEXINPUTS = TEXINPUTS="$(builddir):$(srcdir):$$TEXINPUTS"
|
|
||||||
|
|
||||||
sane.ind: $(API_SPEC_INPUTS)
|
|
||||||
@echo Generating index for $<...
|
|
||||||
@touch sane.ind
|
|
||||||
@$(am_TEXINPUTS) $(LATEX) $< </dev/null >/dev/null && \
|
|
||||||
$(MAKEINDEX) -q sane.idx && \
|
|
||||||
$(am_TEXINPUTS) $(LATEX) $< </dev/null >/dev/null
|
|
||||||
|
|
||||||
.fig.eps:
|
|
||||||
@test -d $(@D) || $(MKDIR_P) $(@D)
|
|
||||||
$(FIG2DEV) -L eps $< $@
|
|
||||||
|
|
||||||
sane.dvi: $(API_SPEC_INPUTS) $(API_SPEC_EPS_FIGS) sane.ind
|
|
||||||
@echo Generating $@ from $<...
|
|
||||||
@$(am_TEXINPUTS) $(LATEX) $< </dev/null >/dev/null
|
|
||||||
|
|
||||||
sane.ps: sane.dvi
|
|
||||||
@echo Generating $@ from $<...
|
|
||||||
@$(am_TEXINPUTS) $(DVIPS) -q $< -o $@
|
|
||||||
|
|
||||||
.fig.pdf:
|
|
||||||
@test -d $(@D) || $(MKDIR_P) $(@D)
|
|
||||||
$(FIG2DEV) -L pdf $< $@
|
|
||||||
|
|
||||||
sane.pdf: $(API_SPEC_INPUTS) $(API_SPEC_PDF_FIGS) sane.ind
|
|
||||||
@echo Generating $@ from $<...
|
|
||||||
@$(am_TEXINPUTS) $(PDFLATEX) $< >/dev/null
|
|
||||||
|
|
||||||
sane-html: sane.dvi
|
|
||||||
$(am_TEXINPUTS) $(DLH) $(srcdir)/sane.tex
|
|
||||||
|
|
||||||
## ^^
|
|
||||||
|
|
||||||
html-man: $(MANPAGES)
|
html-man: $(MANPAGES)
|
||||||
@for page in $(MANPAGES); do \
|
@for page in $(MANPAGES); do \
|
||||||
echo "translating $${page} to $${page}.html..."; \
|
echo "translating $${page} to $${page}.html..."; \
|
||||||
|
@ -344,20 +260,12 @@ descriptions-external.db: $(DESC_EXT_FILES) ../tools/sane-desc
|
||||||
> descriptions-external.db
|
> descriptions-external.db
|
||||||
|
|
||||||
html-pages: $(HTML_PAGES)
|
html-pages: $(HTML_PAGES)
|
||||||
html-local: html-pages html-man sane-html
|
html-local: html-pages html-man
|
||||||
|
|
||||||
clean-local:
|
|
||||||
rm -f *.toc *.aux *.log *.cp *.fn *.tp *.vr *.pg *.ky *.blg *.idx *.cb
|
|
||||||
rm -f *.ilg
|
|
||||||
rm -f $(API_SPEC_EPS_FIGS) $(API_SPEC_PDF_FIGS)
|
|
||||||
-rmdir figs
|
|
||||||
|
|
||||||
distclean-local:
|
distclean-local:
|
||||||
rm -f $(MANPAGES)
|
rm -f $(MANPAGES)
|
||||||
rm -f *.lot *.lof *.ind
|
rm -f sane-backends.html sane-backends-external.html
|
||||||
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-mfgs.html sane-mfgs-external.html
|
||||||
rm -f sane/*.html sane/*.gif
|
|
||||||
rm -f doxygen-sanei.conf doxygen-genesys.conf
|
rm -f doxygen-sanei.conf doxygen-genesys.conf
|
||||||
-rm -rf sane sanei-html
|
-rm -rf sane sanei-html
|
||||||
for manpage in $(MANPAGES) ; do \
|
for manpage in $(MANPAGES) ; do \
|
||||||
|
|
Ładowanie…
Reference in New Issue