1999-08-09 18:06:01 +00:00
|
|
|
SHELL = /bin/sh
|
|
|
|
|
|
|
|
VPATH = @srcdir@
|
|
|
|
srcdir = @srcdir@
|
|
|
|
top_srcdir = @top_srcdir@
|
|
|
|
top_builddir = ..
|
|
|
|
|
2002-01-08 19:06:54 +00:00
|
|
|
PACKAGE = @PACKAGE@
|
|
|
|
VERSION = @VERSION@
|
|
|
|
distdir = $(top_srcdir)/$(PACKAGE)-$(VERSION)
|
|
|
|
|
1999-08-09 18:06:01 +00:00
|
|
|
prefix = @prefix@
|
|
|
|
exec_prefix = @exec_prefix@
|
|
|
|
bindir = @bindir@
|
|
|
|
sbindir = @sbindir@
|
|
|
|
libexecdir = @libexecdir@
|
|
|
|
datadir = @datadir@
|
|
|
|
sysconfdir = @sysconfdir@
|
|
|
|
sharedstatedir = @sharedstatedir@
|
|
|
|
localstatedir = @localstatedir@
|
|
|
|
libdir = @libdir@
|
|
|
|
infodir = @infodir@
|
|
|
|
mandir = @mandir@
|
|
|
|
includedir = @includedir@
|
|
|
|
oldincludedir = /usr/include
|
|
|
|
configdir = ${sysconfdir}/sane.d
|
2000-09-17 03:05:04 +00:00
|
|
|
docdir=$(prefix)/doc/sane-@VERSION@
|
1999-08-09 18:06:01 +00:00
|
|
|
|
|
|
|
MKDIR = $(top_srcdir)/mkinstalldirs
|
|
|
|
INSTALL = @INSTALL@
|
|
|
|
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
|
|
|
INSTALL_DATA = @INSTALL_DATA@
|
|
|
|
LN_S = @LN_S@
|
|
|
|
|
2002-02-13 20:48:29 +00:00
|
|
|
DISTCLEAN_FILES = @DISTCLEAN_FILES@
|
|
|
|
|
1999-08-09 18:06:01 +00:00
|
|
|
@SET_MAKE@
|
|
|
|
|
2002-08-18 13:54:16 +00:00
|
|
|
SECT1 = saned.1 scanimage.1 sane-find-scanner.1 gamma4scanimage.1
|
2000-11-20 22:59:02 +00:00
|
|
|
SECT5 = sane-abaton.5 sane-agfafocus.5 sane-apple.5 sane-as6e.5 sane-dll.5 \
|
2001-09-11 11:40:44 +00:00
|
|
|
sane-dc25.5 sane-dmc.5 sane-epson.5 sane-hp.5 sane-gphoto2.5 \
|
2002-04-21 23:14:46 +00:00
|
|
|
sane-leo.5 sane-matsushita.5 sane-microtek.5 \
|
2000-11-21 01:03:33 +00:00
|
|
|
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 \
|
2001-05-03 19:45:32 +00:00
|
|
|
sane-snapscan.5 sane-canon.5 sane-coolscan.5 sane-bh.5 sane-dc240.5 \
|
2002-03-06 23:54:26 +00:00
|
|
|
sane-umax_pp.5 sane-umax1220u.5 sane-sm3600.5 sane-usb.5 \
|
2002-04-08 23:45:33 +00:00
|
|
|
sane-mustek_usb.5 sane-sceptre.5 sane-canon_pp.5 sane-canon630u.5 \
|
2002-07-26 04:01:42 +00:00
|
|
|
sane-teco1.5 sane-teco3.5 sane-test.5 sane-sp15c.5 sane-coolscan2.5 \
|
|
|
|
sane-hpsj5s.5
|
2001-05-09 18:08:17 +00:00
|
|
|
SECT7 = sane.7
|
|
|
|
MANPAGES = $(SECT1) $(SECT5) $(SECT7)
|
2001-05-01 17:18:07 +00:00
|
|
|
READMES = README AUTHORS COPYING ChangeLog LEVEL2 LICENSE NEWS PROBLEMS \
|
|
|
|
PROJECTS README README.aix README.hp-ux README.linux README.os2 \
|
|
|
|
README.solaris README.unixware2 README.unixware7 TODO
|
|
|
|
DOCS = backend-writing.txt sane.ps sane.dvi
|
2002-04-13 19:14:06 +00:00
|
|
|
BACKDIRS= canon matsushita mustek mustek_usb umax sceptre teco
|
1999-08-09 18:06:01 +00:00
|
|
|
LATEX = TEXINPUTS=$(srcdir):$$TEXINPUTS latex
|
|
|
|
DLH = TEXINPUTS=$(srcdir):$$TEXINPUTS dlh
|
|
|
|
MAN2HTML= nroff -man |\
|
2001-07-07 14:35:36 +00:00
|
|
|
man2html -compress -topm 6 -botm 6 -title $${page} \
|
|
|
|
-cgiurl '$$title.$$section.html'|\
|
2000-03-05 13:57:25 +00:00
|
|
|
sed 's,<BODY>,<BODY BGCOLOR=\#FFFFFF TEXT=\#000000><H1 ALIGN=CENTER><IMG SRC="../sane.png" HEIGHT=117 WIDTH=346></H1>,'
|
2001-05-02 19:39:02 +00:00
|
|
|
EMACS = xemacs
|
|
|
|
WWW_PATH= /home/httpd/html/sane/
|
1999-08-09 18:06:01 +00:00
|
|
|
|
2002-03-20 22:52:17 +00:00
|
|
|
SUBDIRS = $(BACKDIRS) icons figs descriptions descriptions-external
|
2002-01-08 19:06:54 +00:00
|
|
|
|
2002-07-30 18:31:11 +00:00
|
|
|
DISTFILES = Makefile.in backend-writing.txt descriptions.txt \
|
|
|
|
doxygen-sanei.conf html.sty net.tex \
|
2002-01-08 19:06:54 +00:00
|
|
|
releases.txt sane-abaton.man sane-agfafocus.man sane-apple.man \
|
|
|
|
sane-artec.man sane-as6e.man sane-avision.man sane-bh.man \
|
2002-05-05 13:55:38 +00:00
|
|
|
sane-canon.man sane-canon630u.man sane-coolscan.man sane-coolscan2.man \
|
|
|
|
sane-dc210.man sane-dc240.man \
|
2002-01-08 19:06:54 +00:00
|
|
|
sane-dc25.man sane-dll.man sane-dmc.man sane-epson.man \
|
|
|
|
sane-find-scanner.man sane-fujitsu.man sane-gphoto2.man sane-hp.man \
|
2002-03-06 23:54:26 +00:00
|
|
|
sane-logo.png sane-logo2.jpg sane-matsushita.man sane-microtek.man \
|
2002-04-21 23:14:46 +00:00
|
|
|
sane-leo.man sane-microtek2.man \
|
2002-01-08 19:06:54 +00:00
|
|
|
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 \
|
2002-04-08 23:45:33 +00:00
|
|
|
sane.tex saned.man scanimage.man sane-sceptre.man sane-canon_pp.man \
|
2002-08-18 13:54:16 +00:00
|
|
|
sane-teco1.man sane-teco3.man sane-test.man sane-sp15c.man sane-hpsj5s.man \
|
|
|
|
gamma4scanimage.man
|
2002-01-08 19:06:54 +00:00
|
|
|
|
|
|
|
.PHONY: all clean depend dist distclean html html-man install \
|
2002-03-20 22:52:17 +00:00
|
|
|
install-mostang sane-html uninstall
|
2002-01-08 19:06:54 +00:00
|
|
|
|
2001-05-02 19:39:02 +00:00
|
|
|
all: sane.ps $(MANPAGES)
|
1999-08-09 18:06:01 +00:00
|
|
|
|
2001-05-09 18:08:17 +00:00
|
|
|
%.1 %.5 %.7: %.man
|
2001-05-01 17:18:07 +00:00
|
|
|
@sed -e 's|@DATADIR@|$(datadir)|g' \
|
|
|
|
-e 's|@CONFIGDIR@|$(configdir)|g' \
|
|
|
|
-e 's|@DOCDIR@|$(docdir)|g' \
|
2001-06-10 16:25:53 +00:00
|
|
|
-e 's|@LIBDIR@|$(libdir)/sane|g' \
|
2001-05-01 17:18:07 +00:00
|
|
|
-e 's|@BINDIR@|$(bindir)|g' \
|
|
|
|
-e 's|@SBINDIR@|$(sbindir)|g' $^ >$@
|
|
|
|
@echo Generating manpage $@...
|
1999-08-09 18:06:01 +00:00
|
|
|
|
2001-05-02 19:39:02 +00:00
|
|
|
install: all
|
2002-03-29 13:27:16 +00:00
|
|
|
$(MKDIR) $(DESTDIR)$(mandir)/man1 $(DESTDIR)$(mandir)/man5 \
|
|
|
|
$(DESTDIR)$(mandir)/man7
|
1999-08-09 18:06:01 +00:00
|
|
|
@for page in $(SECT1); do \
|
|
|
|
echo installing $${page} in $(mandir)/man1/$${page}...; \
|
2002-03-29 13:27:16 +00:00
|
|
|
$(INSTALL_DATA) $${page} $(DESTDIR)$(mandir)/man1/$${page} || exit 1; \
|
1999-08-09 18:06:01 +00:00
|
|
|
done
|
|
|
|
@for page in $(SECT5); do \
|
|
|
|
echo installing $${page} in $(mandir)/man5/$${page}...; \
|
2002-03-29 13:27:16 +00:00
|
|
|
$(INSTALL_DATA) $${page} $(DESTDIR)$(mandir)/man5/$${page} || exit 1; \
|
1999-08-09 18:06:01 +00:00
|
|
|
done
|
2001-05-09 18:08:17 +00:00
|
|
|
@for page in $(SECT7); do \
|
|
|
|
echo installing $${page} in $(mandir)/man7/$${page}...; \
|
2002-03-29 13:27:16 +00:00
|
|
|
$(INSTALL_DATA) $${page} $(DESTDIR)$(mandir)/man7/$${page} || exit 1; \
|
2001-05-09 18:08:17 +00:00
|
|
|
done
|
2002-03-29 13:27:16 +00:00
|
|
|
$(MKDIR) $(DESTDIR)$(docdir)
|
2001-05-01 17:18:07 +00:00
|
|
|
@for readme in $(READMES); do \
|
|
|
|
echo installing $${readme} in $(docdir)/$${readme}...; \
|
2002-03-29 13:27:16 +00:00
|
|
|
$(INSTALL_DATA) $(top_srcdir)/$${readme} $(DESTDIR)$(docdir)/$${readme} \
|
2001-05-01 17:18:07 +00:00
|
|
|
|| exit 1; \
|
2000-09-17 03:05:04 +00:00
|
|
|
done
|
2001-05-01 17:18:07 +00:00
|
|
|
@for backdir in $(BACKDIRS); do \
|
2002-03-29 13:27:16 +00:00
|
|
|
$(MKDIR) $(DESTDIR)$(docdir)/$${backdir} ; \
|
2001-05-01 17:18:07 +00:00
|
|
|
for doc in $${backdir}/* ; do \
|
|
|
|
if test -f $${doc} ; then \
|
2002-03-29 13:27:16 +00:00
|
|
|
echo installing $${doc} in $(docdir)/$${doc}...; \
|
|
|
|
$(INSTALL_DATA) $${doc} $(DESTDIR)$(docdir)/$${doc} \
|
|
|
|
|| exit 1; \
|
2001-05-01 17:18:07 +00:00
|
|
|
fi \
|
|
|
|
done \
|
|
|
|
done
|
|
|
|
@-for doc in $(DOCS); do \
|
|
|
|
echo installing $${doc} in $(docdir)/$${doc}...; \
|
2002-03-29 13:27:16 +00:00
|
|
|
$(INSTALL_DATA) $${doc} $(DESTDIR)$(docdir)/$${doc}; \
|
2001-05-01 17:18:07 +00:00
|
|
|
done
|
1999-08-09 18:06:01 +00:00
|
|
|
|
2001-05-21 20:20:54 +00:00
|
|
|
uninstall:
|
|
|
|
@for page in $(SECT1); do \
|
|
|
|
echo removing $${page} in $(mandir)/man1/$${page}...; \
|
|
|
|
rm -f $(mandir)/man1/$${page}; \
|
|
|
|
done
|
|
|
|
@for page in $(SECT5); do \
|
|
|
|
echo removing $${page} in $(mandir)/man5/$${page}...; \
|
|
|
|
rm -f $(mandir)/man5/$${page}; \
|
|
|
|
done
|
|
|
|
@for page in $(SECT7); do \
|
|
|
|
echo removing $${page} in $(mandir)/man7/$${page}...; \
|
|
|
|
rm -f $(mandir)/man7/$${page}; \
|
|
|
|
done
|
|
|
|
rm -rf $(docdir)
|
|
|
|
|
2001-05-02 19:39:02 +00:00
|
|
|
sane.ind: sane.tex net.tex
|
|
|
|
@echo Generating index for sane.ps...
|
|
|
|
@touch sane.ind
|
|
|
|
@-$(LATEX) $(srcdir)/sane </dev/null >/dev/null && \
|
|
|
|
makeindex sane.idx 2>/dev/null
|
1999-08-09 18:06:01 +00:00
|
|
|
|
2001-05-02 19:39:02 +00:00
|
|
|
sane.ps: sane.ind
|
|
|
|
@echo Generating sane.ps...
|
|
|
|
@-$(LATEX) $(srcdir)/sane </dev/null >/dev/null && \
|
|
|
|
$(LATEX) $(srcdir)/sane </dev/null >/dev/null && \
|
|
|
|
dvips sane.dvi -o sane.ps 2>/dev/null
|
1999-08-09 18:06:01 +00:00
|
|
|
|
2001-05-02 19:39:02 +00:00
|
|
|
sane-html: sane.ind
|
1999-08-09 18:06:01 +00:00
|
|
|
$(DLH) $(srcdir)/sane.tex
|
|
|
|
|
|
|
|
html-man: $(MANPAGES)
|
|
|
|
@for page in $(MANPAGES); do \
|
|
|
|
echo "translating $${page} to $${page}.html..."; \
|
|
|
|
cat $${page} | $(MAN2HTML) > $${page}.html; \
|
|
|
|
done
|
|
|
|
|
2002-07-17 14:46:45 +00:00
|
|
|
sane-backends.html: $(wildcard descriptions/*.desc) ../tools/sane-desc
|
|
|
|
@../tools/sane-desc -m html-backends-split -s descriptions \
|
|
|
|
-i "The following table summarizes the backends/drivers distributed \
|
|
|
|
with $(PACKAGE)-$(VERSION), and the hardware or software they \
|
|
|
|
support." -d 1 > sane-backends.html
|
|
|
|
|
|
|
|
sane-backends-external.html: $(wildcard descriptions-external/*.desc) \
|
|
|
|
../tools/sane-desc
|
|
|
|
@../tools/sane-desc -m html-backends-split -s 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 1 \
|
|
|
|
> sane-backends-external.html
|
|
|
|
|
|
|
|
sane-mfgs.html: $(wildcard descriptions/*.desc) ../tools/sane-desc
|
|
|
|
@../tools/sane-desc -m html-mfgs -s descriptions \
|
|
|
|
-i "The following table summarizes the devices supported \
|
|
|
|
by the $(PACKAGE)-$(VERSION)." \
|
|
|
|
-d 1 > sane-mfgs.html
|
|
|
|
|
|
|
|
sane-mfgs-external.html: $(wildcard descriptions-external/*.desc) \
|
|
|
|
../tools/sane-desc
|
|
|
|
@../tools/sane-desc -m html-mfgs -s descriptions-external \
|
|
|
|
-i "The following table summarizes the devices that \
|
|
|
|
are supported by external backends." \
|
|
|
|
-t "SANE: Devices Supported by External Backends" -d 1 \
|
|
|
|
> sane-mfgs-external.html
|
|
|
|
|
|
|
|
html-pages: sane-backends.html sane-backends-external.html \
|
|
|
|
sane-mfgs.html sane-mfgs-external.html
|
|
|
|
|
|
|
|
html: html-pages html-man sane-html
|
2001-05-02 19:39:02 +00:00
|
|
|
|
|
|
|
%.gz: %
|
|
|
|
gzip -f -c $^ >$@
|
|
|
|
|
|
|
|
install-mostang: html sane.ps sane.ps.gz
|
|
|
|
@echo Installing html manpages in $(WWW_PATH)/man...
|
|
|
|
$(MKDIR) $(WWW_PATH)/man
|
|
|
|
for manpage in $(MANPAGES) ; do \
|
|
|
|
$(INSTALL_DATA) $${manpage}.html $(WWW_PATH)/man/$${manpage}.html; \
|
|
|
|
done
|
|
|
|
@echo Installing sane-backends.html in $(WWW_PATH)...
|
|
|
|
$(MKDIR) $(WWW_PATH)
|
|
|
|
$(INSTALL_DATA) sane-backends.html $(WWW_PATH)/sane-backends.html
|
2002-03-21 18:48:41 +00:00
|
|
|
@echo Installing sane-backends-external.html in $(WWW_PATH)...
|
|
|
|
$(INSTALL_DATA) sane-backends-external.html \
|
|
|
|
$(WWW_PATH)/sane-backends.html
|
2001-05-02 19:39:02 +00:00
|
|
|
@echo Installing SANE standard \(html\) in $(WWW_PATH)/html/...
|
|
|
|
$(MKDIR) $(WWW_PATH)/html/
|
|
|
|
for html in sane/* ; do \
|
|
|
|
$(INSTALL_DATA) $${html} $(WWW_PATH)/html/ || exit 1; \
|
|
|
|
done
|
|
|
|
@echo Installing SANE standard \(postscript\) in $(WWW_PATH)/...
|
|
|
|
$(INSTALL_DATA) sane.ps $(WWW_PATH)/sane.ps
|
|
|
|
@echo Installing SANE standard \(ps.gz\) in $(WWW_PATH)/...
|
|
|
|
$(INSTALL_DATA) sane.ps.gz $(WWW_PATH)/sane.ps.gz
|
1999-08-09 18:06:01 +00:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f *.toc *.aux *.log *.cp *.fn *.tp *.vr *.pg *.ky *.blg *.idx *.cb
|
|
|
|
rm -f *.ilg
|
|
|
|
|
|
|
|
distclean: clean
|
2002-02-13 20:48:29 +00:00
|
|
|
rm -f $(DISTCLEAN_FILES)
|
2002-03-21 20:29:17 +00:00
|
|
|
for subdir in $(SUBDIRS) ; do \
|
|
|
|
( cd $$subdir ; rm -f $(DISTCLEAN_FILES) ); \
|
|
|
|
done
|
1999-08-09 18:06:01 +00:00
|
|
|
rm -f $(MANPAGES)
|
2002-02-13 20:48:29 +00:00
|
|
|
rm -f Makefile
|
2001-05-02 19:39:02 +00:00
|
|
|
rm -f *.lot *.lof *.ind *.gz
|
2002-03-20 22:52:17 +00:00
|
|
|
rm -f sane.dvi sane.ps sane-backends.html sane-backends-external.html
|
2002-07-17 14:46:45 +00:00
|
|
|
rm -f sane-mfgs.html sane-mfgs-external.html
|
1999-08-09 18:06:01 +00:00
|
|
|
rm -f sane/*.html sane/*.gif
|
2002-02-19 20:45:53 +00:00
|
|
|
-rm -rf sane sanei-html
|
2001-05-01 17:18:07 +00:00
|
|
|
for manpage in $(MANPAGES) ; do \
|
|
|
|
rm -f $${manpage}.html ; \
|
|
|
|
done
|
|
|
|
|
1999-08-09 18:06:01 +00:00
|
|
|
depend:
|
|
|
|
|
2002-01-08 19:06:54 +00:00
|
|
|
dist: $(DISTFILES)
|
|
|
|
for subdir in $(SUBDIRS) ; do \
|
|
|
|
$(MKDIR) $(distdir)/doc/$${subdir} ; \
|
|
|
|
for file in $${subdir}/* ; do \
|
|
|
|
ln $$file $(distdir)/doc/$${subdir} 2> /dev/null \
|
|
|
|
|| cp -p $$file $(distdir)/doc/$${subdir} ; \
|
|
|
|
done ; \
|
|
|
|
done
|
|
|
|
for file in $(DISTFILES); do \
|
|
|
|
ln $$file $(distdir)/doc 2> /dev/null \
|
|
|
|
|| cp -p $$file $(distdir)/doc ; \
|
|
|
|
done
|
|
|
|
|