Added 16 bit support for stand-alone mode SANE_FRAME_GRAY and SANE_FRAME_RGB
[sane/sane-frontends.git] / Makefile.in
1 SHELL = /bin/sh
2
3 VPATH = @srcdir@
4 srcdir = @srcdir@
5 top_srcdir = @top_srcdir@
6 top_builddir = .
7
8 PACKAGE = @PACKAGE@
9 VERSION = @VERSION@
10 distdir = $(top_srcdir)/$(PACKAGE)-$(VERSION)
11
12 prefix = @prefix@
13 exec_prefix = @exec_prefix@
14 bindir = @bindir@
15 sbindir = @sbindir@
16 libexecdir = @libexecdir@
17 datadir = @datadir@
18 sysconfdir = @sysconfdir@
19 sharedstatedir = @sharedstatedir@
20 localstatedir = @localstatedir@
21 libdir = @libdir@
22 infodir = @infodir@
23 mandir = @mandir@
24 includedir = @includedir@
25 oldincludedir = /usr/include
26
27 sanedatadir = @datadir@/sane
28
29 MKDIR = $(top_srcdir)/mkinstalldirs
30 INSTALL = @INSTALL@
31 INSTALL_PROGRAM = @INSTALL_PROGRAM@
32 INSTALL_DATA = @INSTALL_DATA@
33
34 @SET_MAKE@
35
36 SUBDIRS = include lib sanei src doc
37
38 DISTFILES = AUTHORS COPYING Changelog INSTALL Makefile.in NEWS PROBLEMS \
39   README TODO aclocal.m4 config.guess config.sub configure configure.in \
40   install-sh mkinstalldirs sane-frontends.lsm 
41
42 .PHONY: all all-recursive clean clean-recursive depend \
43   depend-recursive dist install install-recursive lsm sane-frontends \
44   uninstall uninstall-recursive
45
46 all: all-recursive
47
48 $(PACKAGE)-$(VERSION).lsm: $(PACKAGE)-$(VERSION).tar.gz $(PACKAGE).lsm
49         ( cat $(PACKAGE).lsm | \
50           sed -e "s|_DATE_|`date +%d%b%y`|g" \
51             -e "s|_VERSION_|$(VERSION)|g" \
52             -e "s|_T_S_|`find $(PACKAGE)-$(VERSION).tar.gz -printf \"%3k\"`|g"\
53             -e "s|_L_S_|`find $(PACKAGE).lsm -printf "%3k"`|g" > \
54             $(PACKAGE)-$(VERSION).lsm \
55         )
56
57 lsm: $(PACKAGE)-$(VERSION).lsm dist
58
59 install: install-recursive
60
61 uninstall: uninstall-recursive
62
63 clean: clean-recursive
64
65 distclean: clean distclean-recursive
66         rm -f *~ *.log *.bak libtool *.tar.gz
67         rm -f Makefile config.cache config.status
68         rm -f intl/Makefile
69
70 depend: depend-recursive
71
72 all-recursive install-recursive uninstall-recursive clean-recursive \
73 distclean-recursive depend-recursive:
74         @for subdir in $(SUBDIRS); do           \
75           target=`echo $@ | sed s/-recursive//`; \
76           echo making $$target in $$subdir;     \
77           (cd $$subdir && $(MAKE) $$target)     \
78            || case "$(MFLAGS)" in *k*) fail=yes;; *) exit 1;; esac; \
79         done && test -z "$$fail"
80
81
82 dist: $(DISTFILES)
83         rm -fr $(distdir)
84         $(MKDIR) $(distdir)
85         for file in $(DISTFILES); do \
86           ln $$file $(distdir) 2>/dev/null || cp -p $$file $(distdir); \
87         done
88         for subdir in $(SUBDIRS) ; do \
89           mkdir $(distdir)/$$subdir || exit 1; \
90           (cd $$subdir && $(MAKE) $@) || exit 1; \
91         done
92         tar chzf $(distdir).tar.gz $(distdir)
93         rm -fr $(distdir)
94
95 $(PACKAGE)-$(VERSION).tar.gz: dist
96
97 sane-frontends: dist lsm