2002-01-08 18:58:16 +00:00
|
|
|
SHELL = /bin/sh
|
|
|
|
|
|
|
|
VPATH = @srcdir@
|
|
|
|
srcdir = @srcdir@
|
|
|
|
top_srcdir = @top_srcdir@
|
|
|
|
top_builddir = .
|
|
|
|
|
|
|
|
PACKAGE = @PACKAGE@
|
|
|
|
VERSION = @VERSION@
|
|
|
|
|
|
|
|
distdir = $(top_srcdir)/$(PACKAGE)-$(VERSION)
|
|
|
|
|
|
|
|
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@
|
|
|
|
|
2002-02-13 20:48:29 +00:00
|
|
|
DISTCLEAN_FILES = @DISTCLEAN_FILES@
|
|
|
|
|
2002-01-08 18:58:16 +00:00
|
|
|
@SET_MAKE@
|
|
|
|
|
2002-03-29 13:27:16 +00:00
|
|
|
INSTALLED_INCLUDES = sane.h saneopts.h
|
2002-01-08 18:58:16 +00:00
|
|
|
|
2002-03-29 13:27:16 +00:00
|
|
|
SANE_INCLUDES = $(addprefix $(top_srcdir)/include/sane/,$(INSTALLED_INCLUDES)) \
|
2002-01-08 18:58:16 +00:00
|
|
|
$(addprefix $(top_srcdir)/include/sane/,config.h.in sanei.h \
|
2005-04-01 14:00:28 +00:00
|
|
|
sanei_ab306.h sanei_auth.h sanei_access.h sanei_backend.h \
|
2003-07-26 21:40:06 +00:00
|
|
|
sanei_cderror.h sanei_jinclude.h sanei_jpeg.h \
|
2002-01-08 18:58:16 +00:00
|
|
|
sanei_codec_ascii.h sanei_codec_bin.h sanei_config.h \
|
2002-01-10 21:39:07 +00:00
|
|
|
sanei_debug.h sanei_lm983x.h sanei_net.h sanei_pa4s2.h \
|
|
|
|
sanei_pio.h sanei_pv8630.h sanei_scsi.h sanei_thread.h \
|
2003-10-22 19:15:18 +00:00
|
|
|
sanei_usb.h sanei_wire.h sanei_pp.h)
|
2002-01-08 18:58:16 +00:00
|
|
|
|
|
|
|
OTHER_INCLUDES = $(addprefix $(top_srcdir)/include/,Makefile.in getopt.h \
|
|
|
|
lalloca.h lassert.h md5.h )
|
|
|
|
|
|
|
|
DISTFILES = $(SANE_INCLUDES) $(OTHER_INCLUDES)
|
|
|
|
|
|
|
|
.PHONY: all clean depend dist distclean install uninstall
|
1999-08-09 18:06:01 +00:00
|
|
|
|
|
|
|
all:
|
|
|
|
|
2002-01-08 18:58:16 +00:00
|
|
|
clean:
|
|
|
|
|
|
|
|
distclean: clean
|
2002-02-13 20:48:29 +00:00
|
|
|
rm -f $(DISTCLEAN_FILES)
|
|
|
|
rm -f $(addprefix sane/,$(DISTCLEAN_FILES))
|
1999-08-09 18:06:01 +00:00
|
|
|
rm -f Makefile
|
2002-02-13 20:48:29 +00:00
|
|
|
rm -f sane/config.h
|
2002-01-08 18:58:16 +00:00
|
|
|
|
|
|
|
install:
|
2002-03-29 13:27:16 +00:00
|
|
|
$(MKDIR) $(DESTDIR)$(includedir)/sane
|
2002-01-08 18:58:16 +00:00
|
|
|
@list="$(INSTALLED_INCLUDES)"; for file in $$list; do \
|
2002-03-29 13:27:16 +00:00
|
|
|
echo installing sane/$${file} in $(includedir)/sane/$${file}...; \
|
2002-05-21 22:03:41 +00:00
|
|
|
$(INSTALL_DATA) $(srcdir)/sane/$${file} $(DESTDIR)$(includedir)/sane/$${file} \
|
2002-03-29 13:27:16 +00:00
|
|
|
|| exit 1; \
|
2002-01-08 18:58:16 +00:00
|
|
|
done
|
|
|
|
|
|
|
|
uninstall:
|
|
|
|
rm -rf $(includedir)/sane
|
|
|
|
|
|
|
|
depend:
|
|
|
|
|
|
|
|
dist: $(DISTFILES)
|
|
|
|
$(MKDIR) $(distdir)/include/sane
|
|
|
|
for file in $(OTHER_INCLUDES); do \
|
|
|
|
ln $$file $(distdir)/include 2> /dev/null \
|
|
|
|
|| cp -p $$file $(distdir)/include; \
|
|
|
|
done
|
|
|
|
for file in $(SANE_INCLUDES); do \
|
|
|
|
ln $$file $(distdir)/include/sane 2> /dev/null \
|
|
|
|
|| cp -p $$file $(distdir)/include/sane; \
|
|
|
|
done
|