2000-11-10 06:47:25 +00:00
|
|
|
SHELL = /bin/sh
|
|
|
|
|
|
|
|
VPATH = @srcdir@
|
|
|
|
srcdir = @srcdir@
|
|
|
|
top_srcdir = @top_srcdir@
|
|
|
|
top_builddir = ..
|
|
|
|
|
2002-01-08 18:18:47 +00:00
|
|
|
PACKAGE = @PACKAGE@
|
|
|
|
VERSION = @VERSION@
|
|
|
|
distdir = $(top_srcdir)/$(PACKAGE)-$(VERSION)
|
|
|
|
|
2000-11-10 06:47:25 +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
|
|
|
|
sanedatadir = ${datadir}/sane
|
|
|
|
docdir=$(prefix)/doc/sane-@VERSION@
|
|
|
|
|
|
|
|
MKDIR = $(top_srcdir)/mkinstalldirs
|
|
|
|
INSTALL = @INSTALL@
|
|
|
|
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
|
|
|
INSTALL_DATA = @INSTALL_DATA@
|
|
|
|
LN_S = @LN_S@
|
|
|
|
|
|
|
|
@SET_MAKE@
|
|
|
|
|
2002-01-12 00:45:20 +00:00
|
|
|
SECT1 = xscanimage.1 xcam.1 scanadf.1
|
2000-11-10 06:47:25 +00:00
|
|
|
MANPAGES = $(SECT1)
|
|
|
|
LATEX = TEXINPUTS=$(srcdir):$$TEXINPUTS latex
|
|
|
|
DLH = TEXINPUTS=$(srcdir):$$TEXINPUTS dlh
|
|
|
|
MAN2HTML= nroff -man |\
|
2001-07-07 14:39:30 +00:00
|
|
|
man2html -compress -topm 6 -botm 6 \
|
|
|
|
-title $${page} -cgiurl '$$title.$$section.html'|\
|
2000-11-10 06:47:25 +00:00
|
|
|
sed 's,<BODY>,<BODY BGCOLOR=\#FFFFFF TEXT=\#000000><H1 ALIGN=CENTER><IMG SRC="../sane.png" HEIGHT=117 WIDTH=346></H1>,'
|
|
|
|
|
2002-01-12 00:45:20 +00:00
|
|
|
DISTFILES = Makefile.in sane.png xcam.man xscanimage.man scanadf.man
|
2002-01-08 18:18:47 +00:00
|
|
|
|
|
|
|
.PHONY: all clean depend dist html html-man install ps uninstall
|
|
|
|
|
2000-11-10 06:47:25 +00:00
|
|
|
all: $(MANPAGES)
|
|
|
|
|
2001-05-28 21:36:42 +00:00
|
|
|
%.1: %.man
|
|
|
|
@sed -e 's|@DATADIR@|$(datadir)|g' \
|
2000-11-10 06:47:25 +00:00
|
|
|
-e 's|@CONFIGDIR@|$(configdir)|g' \
|
|
|
|
-e 's|@LIBDIR@|$(libdir)|g' \
|
|
|
|
-e 's|@BINDIR@|$(bindir)|g' \
|
|
|
|
-e 's|@SBINDIR@|$(sbindir)|g' $^ >$@
|
2001-05-28 21:36:42 +00:00
|
|
|
@echo Generating manpage $@...
|
2000-11-10 06:47:25 +00:00
|
|
|
|
|
|
|
install: $(MANPAGES)
|
2002-03-28 19:26:00 +00:00
|
|
|
$(MKDIR) $(DESTDIR)$(mandir)/man1
|
2000-11-10 06:47:25 +00:00
|
|
|
@for page in $(SECT1); do \
|
|
|
|
echo installing $${page} in $(mandir)/man1/$${page}...; \
|
2002-03-28 19:26:00 +00:00
|
|
|
$(INSTALL_DATA) $${page} $(DESTDIR)$(mandir)/man1/$${page} \
|
|
|
|
|| exit 1; \
|
2000-11-10 06:47:25 +00:00
|
|
|
done
|
|
|
|
|
2001-05-28 21:36:42 +00:00
|
|
|
uninstall:
|
|
|
|
@for page in $(SECT1); do \
|
|
|
|
echo Removing $${page} in $(mandir)/man1/$${page}...; \
|
|
|
|
rm -f $(mandir)/man1/$${page} ; \
|
2000-11-10 06:47:25 +00:00
|
|
|
done
|
|
|
|
|
|
|
|
html-man: $(MANPAGES)
|
|
|
|
@for page in $(MANPAGES); do \
|
|
|
|
echo "translating $${page} to $${page}.html..."; \
|
|
|
|
cat $${page} | $(MAN2HTML) > $${page}.html; \
|
|
|
|
done
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f *.toc *.aux *.log *.cp *.fn *.tp *.vr *.pg *.ky *.blg *.idx *.cb
|
|
|
|
rm -f *.ilg
|
|
|
|
|
|
|
|
distclean: clean
|
|
|
|
rm -f $(MANPAGES)
|
2001-05-28 21:36:42 +00:00
|
|
|
for manpage in $(MANPAGES) ; do \
|
|
|
|
rm -f $${manpage}.html ; \
|
|
|
|
done
|
2000-11-10 06:47:25 +00:00
|
|
|
rm -f Makefile *~
|
|
|
|
rm -f *.lot *.lof *.ind
|
|
|
|
|
|
|
|
depend:
|
|
|
|
|
2002-01-08 18:18:47 +00:00
|
|
|
dist: $(DISTFILES)
|
|
|
|
for file in $(DISTFILES); do \
|
|
|
|
ln $$file $(distdir)/doc 2> /dev/null \
|
|
|
|
|| cp -p $$file $(distdir)/doc ; \
|
|
|
|
done
|