2000-11-10 06:47:25 +00:00
|
|
|
SHELL = /bin/sh
|
|
|
|
|
|
|
|
VPATH = @srcdir@
|
|
|
|
srcdir = @srcdir@
|
|
|
|
top_srcdir = @top_srcdir@
|
|
|
|
top_builddir = .
|
|
|
|
|
2001-11-04 20:45:36 +00:00
|
|
|
PACKAGE = @PACKAGE@
|
|
|
|
VERSION = @VERSION@
|
2002-01-08 18:24:41 +00:00
|
|
|
distdir = $(top_srcdir)/$(PACKAGE)-$(VERSION)
|
2001-11-04 20:45:36 +00:00
|
|
|
|
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
|
|
|
|
|
|
|
|
sanedatadir = @datadir@/sane
|
|
|
|
|
|
|
|
MKDIR = $(top_srcdir)/mkinstalldirs
|
|
|
|
INSTALL = @INSTALL@
|
|
|
|
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
|
|
|
INSTALL_DATA = @INSTALL_DATA@
|
|
|
|
|
|
|
|
@SET_MAKE@
|
|
|
|
|
2023-02-09 14:56:03 +00:00
|
|
|
SUBDIRS = include sanei src doc
|
2002-01-08 18:24:41 +00:00
|
|
|
|
|
|
|
DISTFILES = AUTHORS COPYING Changelog INSTALL Makefile.in NEWS PROBLEMS \
|
2003-09-24 17:47:41 +00:00
|
|
|
README acinclude.m4 aclocal.m4 config.guess config.sub configure \
|
2004-10-10 13:54:05 +00:00
|
|
|
configure.in install-sh mkinstalldirs sane-frontends.lsm \
|
|
|
|
xscanimage-icon-48x48-2.png
|
2002-01-08 18:24:41 +00:00
|
|
|
|
|
|
|
.PHONY: all all-recursive clean clean-recursive depend \
|
|
|
|
depend-recursive dist install install-recursive lsm sane-frontends \
|
|
|
|
uninstall uninstall-recursive
|
2000-11-10 06:47:25 +00:00
|
|
|
|
|
|
|
all: all-recursive
|
|
|
|
|
2001-11-04 20:45:36 +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 \
|
|
|
|
)
|
2002-01-08 18:24:41 +00:00
|
|
|
|
|
|
|
lsm: $(PACKAGE)-$(VERSION).lsm dist
|
2001-11-04 20:45:36 +00:00
|
|
|
|
2000-11-10 06:47:25 +00:00
|
|
|
install: install-recursive
|
|
|
|
|
|
|
|
uninstall: uninstall-recursive
|
|
|
|
|
|
|
|
clean: clean-recursive
|
|
|
|
|
|
|
|
distclean: clean distclean-recursive
|
2002-03-28 19:23:28 +00:00
|
|
|
rm -f *~ *.log *.bak libtool *.tar.gz
|
2002-01-08 18:24:41 +00:00
|
|
|
rm -f Makefile config.cache config.status
|
2000-11-10 06:47:25 +00:00
|
|
|
rm -f intl/Makefile
|
2003-11-26 21:47:08 +00:00
|
|
|
rm -f $(distdir).tar.gz.md5
|
|
|
|
rm -f sane-frontends-*.lsm
|
2004-04-24 16:06:08 +00:00
|
|
|
rm -rf autom4te.cache
|
2000-11-10 06:47:25 +00:00
|
|
|
|
|
|
|
depend: depend-recursive
|
|
|
|
|
2001-05-28 21:36:42 +00:00
|
|
|
all-recursive install-recursive uninstall-recursive clean-recursive \
|
|
|
|
distclean-recursive depend-recursive:
|
|
|
|
@for subdir in $(SUBDIRS); do \
|
2000-11-10 06:47:25 +00:00
|
|
|
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"
|
|
|
|
|
2002-01-08 18:24:41 +00:00
|
|
|
|
|
|
|
dist: $(DISTFILES)
|
|
|
|
rm -fr $(distdir)
|
|
|
|
$(MKDIR) $(distdir)
|
|
|
|
for file in $(DISTFILES); do \
|
|
|
|
ln $$file $(distdir) 2>/dev/null || cp -p $$file $(distdir); \
|
|
|
|
done
|
|
|
|
for subdir in $(SUBDIRS) ; do \
|
|
|
|
mkdir $(distdir)/$$subdir || exit 1; \
|
|
|
|
(cd $$subdir && $(MAKE) $@) || exit 1; \
|
|
|
|
done
|
|
|
|
tar chzf $(distdir).tar.gz $(distdir)
|
|
|
|
rm -fr $(distdir)
|
|
|
|
|
2003-11-26 21:47:08 +00:00
|
|
|
md5: dist
|
|
|
|
md5sum $(distdir).tar.gz > $(distdir).tar.gz.md5
|
|
|
|
|
2002-01-08 18:24:41 +00:00
|
|
|
$(PACKAGE)-$(VERSION).tar.gz: dist
|
|
|
|
|
2003-11-26 21:47:08 +00:00
|
|
|
sane-frontends: dist lsm md5
|