1999-08-09 18:06:01 +00:00
|
|
|
SHELL = /bin/sh
|
|
|
|
|
|
|
|
VPATH = @srcdir@
|
|
|
|
srcdir = @srcdir@
|
|
|
|
top_srcdir = @top_srcdir@
|
|
|
|
top_builddir = ..
|
|
|
|
|
|
|
|
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@
|
|
|
|
|
|
|
|
@SET_MAKE@
|
|
|
|
|
2000-12-31 19:35:04 +00:00
|
|
|
SECT1 = saned.1 scanimage.1 sane-find-scanner.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 \
|
|
|
|
sane-dc25.5 sane-dmc.5 sane-epson.5 sane-hp.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-04-07 18:58:45 +00:00
|
|
|
sane-snapscan.5 sane-canon.5 sane-coolscan.5 sane-bh.5 sane-dc240.5
|
1999-08-09 18:06:01 +00:00
|
|
|
MANPAGES = $(SECT1) $(SECT5)
|
2000-09-17 03:05:04 +00:00
|
|
|
DOCS = sane.ps sane.dvi
|
1999-08-09 18:06:01 +00:00
|
|
|
LATEX = TEXINPUTS=$(srcdir):$$TEXINPUTS latex
|
|
|
|
DLH = TEXINPUTS=$(srcdir):$$TEXINPUTS dlh
|
|
|
|
MAN2HTML= nroff -man |\
|
|
|
|
man2html -compress -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>,'
|
1999-08-09 18:06:01 +00:00
|
|
|
|
|
|
|
all: $(MANPAGES)
|
|
|
|
|
|
|
|
%.1 %.5: %.man
|
|
|
|
sed -e 's|@DATADIR@|$(datadir)|g' \
|
|
|
|
-e 's|@CONFIGDIR@|$(configdir)|g' \
|
|
|
|
-e 's|@LIBDIR@|$(libdir)|g' \
|
|
|
|
-e 's|@BINDIR@|$(bindir)|g' \
|
|
|
|
-e 's|@SBINDIR@|$(sbindir)|g' $^ >$@
|
|
|
|
|
|
|
|
install: $(MANPAGES)
|
|
|
|
$(MKDIR) $(mandir)/man1 $(mandir)/man5
|
|
|
|
@for page in $(SECT1); do \
|
|
|
|
echo installing $${page} in $(mandir)/man1/$${page}...; \
|
|
|
|
$(INSTALL_DATA) $${page} $(mandir)/man1/$${page} || exit 1; \
|
|
|
|
done
|
|
|
|
@for page in $(SECT5); do \
|
|
|
|
echo installing $${page} in $(mandir)/man5/$${page}...; \
|
|
|
|
$(INSTALL_DATA) $${page} $(mandir)/man5/$${page} || exit 1; \
|
|
|
|
done
|
|
|
|
|
2000-09-17 03:05:04 +00:00
|
|
|
install-docs: ps
|
|
|
|
$(MKDIR) $(docdir)
|
|
|
|
@for doc in $(DOCS); do \
|
|
|
|
echo installing $${doc} in $(docdir)/$${doc}...; \
|
|
|
|
$(INSTALL_DATA) $${doc} $(docdir)/$${doc} || exit 1; \
|
|
|
|
done
|
|
|
|
|
1999-08-09 18:06:01 +00:00
|
|
|
docs: ps html
|
|
|
|
|
|
|
|
sane.ind:
|
|
|
|
touch sane.ind
|
|
|
|
$(LATEX) $(srcdir)/sane
|
|
|
|
makeindex sane.idx
|
|
|
|
|
|
|
|
ps: sane.ind
|
|
|
|
-rm -f figs; $(LN_S) $(srcdir)/figs .
|
|
|
|
$(LATEX) $(srcdir)/sane
|
|
|
|
$(LATEX) $(srcdir)/sane
|
|
|
|
dvips sane.dvi -o sane.ps
|
|
|
|
|
|
|
|
html: sane.ind sane-backends-html html-man
|
|
|
|
$(DLH) $(srcdir)/sane.tex
|
|
|
|
|
|
|
|
sane-backends-html:
|
|
|
|
cd $(top_srcdir)/backend \
|
|
|
|
&& emacs -batch --load $(top_srcdir)/tools/sane-desc.el \
|
|
|
|
-f sane-desc-doit
|
|
|
|
|
|
|
|
html-man: $(MANPAGES)
|
|
|
|
@for page in $(MANPAGES); do \
|
|
|
|
echo "translating $${page} to $${page}.html..."; \
|
|
|
|
cat $${page} | $(MAN2HTML) > $${page}.html; \
|
|
|
|
done
|
|
|
|
|
|
|
|
sane.tex: sane.ind
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f *.toc *.aux *.log *.cp *.fn *.tp *.vr *.pg *.ky *.blg *.idx *.cb
|
|
|
|
rm -f *.ilg
|
|
|
|
|
|
|
|
distclean: clean
|
|
|
|
rm -f $(MANPAGES)
|
|
|
|
rm -f Makefile *~
|
|
|
|
rm -f *.lot *.lof *.ind
|
|
|
|
rm -f sane.dvi sane.ps
|
|
|
|
rm -f sane/*.html sane/*.gif
|
|
|
|
-rmdir sane
|
|
|
|
|
|
|
|
depend:
|
|
|
|
|
|
|
|
.PHONY: all install depend clean ps html htmlman sane-backends-html
|