1999-08-09 18:06:01 +00:00
|
|
|
SHELL = /bin/sh
|
|
|
|
|
|
|
|
VPATH = @srcdir@
|
|
|
|
srcdir = @srcdir@
|
|
|
|
top_srcdir = @top_srcdir@
|
|
|
|
top_builddir = .
|
|
|
|
|
2000-08-12 15:11:46 +00:00
|
|
|
PACKAGE = @PACKAGE@
|
|
|
|
VERSION = @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
|
|
|
|
|
|
|
|
MKDIR = $(top_srcdir)/mkinstalldirs
|
|
|
|
INSTALL = @INSTALL@
|
|
|
|
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
|
|
|
INSTALL_DATA = @INSTALL_DATA@
|
|
|
|
|
|
|
|
@SET_MAKE@
|
|
|
|
|
2000-11-14 00:40:28 +00:00
|
|
|
INSTALLED_INCLUDES = $(addprefix $(top_srcdir)/include/sane/,sane.h \
|
|
|
|
saneopts.h)
|
1999-08-09 18:06:01 +00:00
|
|
|
|
|
|
|
SUBDIRS = lib sanei backend frontend doc tools
|
|
|
|
|
|
|
|
all: all-recursive
|
|
|
|
|
2000-08-12 15:11:46 +00:00
|
|
|
$(PACKAGE)-$(VERSION).lsm: $(PACKAGE)-$(VERSION).tar.gz $(PACKAGE).lsm
|
|
|
|
( cat $(PACKAGE).lsm | \
|
|
|
|
sed -e "s|_DATE_|`date +%d%b%y`|g" \
|
|
|
|
-e "s|_VERSION_|$(VERSION)|g" \
|
|
|
|
-e "s|_T_S_|`find $(PACKAGE)-$(VERSION).tar.gz -printf \"%3k\"`|g"\
|
|
|
|
-e "s|_L_S_|`find $(PACKAGE).lsm -printf "%3k"`|g" > \
|
|
|
|
$(PACKAGE)-$(VERSION).lsm \
|
|
|
|
)
|
|
|
|
lsm: $(PACKAGE)-$(VERSION).lsm
|
1999-08-09 18:06:01 +00:00
|
|
|
|
|
|
|
install: install-recursive
|
|
|
|
$(MKDIR) $(includedir)/sane
|
|
|
|
@list="$(INSTALLED_INCLUDES)"; for file in $$list; do \
|
|
|
|
echo installing $${file} in $(includedir)/sane...; \
|
|
|
|
$(INSTALL_DATA) $${file} $(includedir)/sane || exit 1; \
|
|
|
|
done
|
|
|
|
|
2001-04-16 17:39:07 +00:00
|
|
|
#
|
|
|
|
# Keep the .cvsignore files sorted, and use this target to do it.
|
|
|
|
#
|
|
|
|
PERL=perl
|
|
|
|
sort-cvsignore:
|
|
|
|
for f in `find . -name .cvsignore`; do \
|
|
|
|
$(PERL) -e 'print sort <>;' < $$f > $$f.tmptmp; \
|
|
|
|
mv $$f.tmptmp $$f; \
|
|
|
|
done
|
|
|
|
|
1999-08-09 18:06:01 +00:00
|
|
|
clean: clean-recursive
|
|
|
|
|
|
|
|
distclean: clean distclean-recursive
|
|
|
|
rm -f *~ include/*~ include/sane/*~ *.log *.bak libtool
|
|
|
|
rm -f include/sane/config.h Makefile config.cache config.status
|
|
|
|
rm -f japi/Makefile
|
|
|
|
|
|
|
|
depend: depend-recursive
|
|
|
|
|
|
|
|
all-recursive install-recursive clean-recursive distclean-recursive \
|
|
|
|
depend-recursive:
|
|
|
|
for subdir in $(SUBDIRS); do \
|
|
|
|
target=`echo $@ | sed s/-recursive//`; \
|
|
|
|
echo making $$target in $$subdir; \
|
|
|
|
(cd $$subdir && $(MAKE) $$target) \
|
|
|
|
|| case "$(MFLAGS)" in *k*) fail=yes;; *) exit 1;; esac; \
|
|
|
|
done && test -z "$$fail"
|
|
|
|
|
|
|
|
.PHONY: all clean depend \
|
|
|
|
all-recursive install-recursive clean-recursive depend-recursive
|