| 
									
										
										
										
											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@ | 
					
						
							| 
									
										
										
										
											2002-01-08 19:12:00 +00:00
										 |  |  | distdir = $(PACKAGE)-$(VERSION) | 
					
						
							| 
									
										
										
										
											2000-08-12 15:11:46 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											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@ | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2002-02-13 20:48:29 +00:00
										 |  |  | DISTCLEAN_FILES = @DISTCLEAN_FILES@ | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											1999-08-09 18:06:01 +00:00
										 |  |  | @SET_MAKE@ | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2002-01-08 19:12:00 +00:00
										 |  |  | SUBDIRS	= include lib sanei backend frontend doc tools po | 
					
						
							| 
									
										
										
										
											1999-08-09 18:06:01 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2002-01-10 17:07:18 +00:00
										 |  |  | DISTFILES = AUTHORS COPYING ChangeLog ChangeLog-1.0.0 ChangeLog-1.0.1 \
 | 
					
						
							|  |  |  |   ChangeLog-1.0.2 ChangeLog-1.0.3 ChangeLog-1.0.4 ChangeLog-1.0.5 LEVEL2 \
 | 
					
						
							|  |  |  |   LICENSE Makefile.in NEWS \
 | 
					
						
							| 
									
										
										
										
											2002-02-02 17:03:38 +00:00
										 |  |  |   PROBLEMS PROJECTS README README.aix README.hp-ux README.linux README.netbsd \
 | 
					
						
							| 
									
										
										
										
											2002-01-08 19:12:00 +00:00
										 |  |  |   README.openbsd README.os2 README.solaris README.unixware2 README.unixware7 \
 | 
					
						
							|  |  |  |   TODO acinclude.m4 aclocal.m4 config.guess config.sub configure \
 | 
					
						
							|  |  |  |   configure.in configure.os2 install-sh ltconfig ltmain.sh mkinstalldirs \
 | 
					
						
							|  |  |  |   sane-backends.lsm | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | .PHONY: all all-recursive clean clean-recursive depend \ | 
					
						
							|  |  |  |   depend-recursive dist install install-recursive libcheck lsm \
 | 
					
						
							|  |  |  |   sane-backends sort-cvsignore uninstall uninstall-recursive | 
					
						
							| 
									
										
										
										
											1999-08-09 18:06:01 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | 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" \
 | 
					
						
							| 
									
										
										
										
											2002-01-08 19:12:00 +00:00
										 |  |  | 	  -e "s|_T_S_|`find $(PACKAGE)-$(VERSION).tar.gz -printf \"%4k\"`|g"\
 | 
					
						
							|  |  |  | 	  -e "s|_L_S_|`find $(PACKAGE).lsm -printf "%4k"`|g" > \
 | 
					
						
							| 
									
										
										
										
											2000-08-12 15:11:46 +00:00
										 |  |  | 	     $(PACKAGE)-$(VERSION).lsm \
 | 
					
						
							|  |  |  | 	) | 
					
						
							| 
									
										
										
										
											2002-01-08 19:12:00 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2000-08-12 15:11:46 +00:00
										 |  |  | lsm: $(PACKAGE)-$(VERSION).lsm | 
					
						
							| 
									
										
										
										
											1999-08-09 18:06:01 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | install: install-recursive | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2001-05-21 20:20:54 +00:00
										 |  |  | uninstall: uninstall-recursive | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											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 | 
					
						
							| 
									
										
										
										
											2001-05-26 10:29:51 +00:00
										 |  |  | #
 | 
					
						
							|  |  |  | # Check to make sure only sane_ and sanei_ symbols are exported from
 | 
					
						
							|  |  |  | # the libraries
 | 
					
						
							|  |  |  | #
 | 
					
						
							|  |  |  | libcheck: | 
					
						
							| 
									
										
										
										
											2001-09-05 19:59:25 +00:00
										 |  |  | 	@echo "Libraries exporting 'illegal' symbols:" | 
					
						
							| 
									
										
										
										
											2001-05-26 10:29:51 +00:00
										 |  |  | 	@for lib in backend/.libs/*.a; do \
 | 
					
						
							| 
									
										
										
										
											2001-09-05 19:59:25 +00:00
										 |  |  | 	  lines=`nm -g $$lib|grep ' T '|egrep -v ' sane_| sanei_'` ; \
 | 
					
						
							|  |  |  | 	  if test -n "$$lines" ; \
 | 
					
						
							| 
									
										
										
										
											2001-05-26 10:29:51 +00:00
										 |  |  | 	  then \
 | 
					
						
							| 
									
										
										
										
											2001-09-05 19:59:25 +00:00
										 |  |  | 	    echo -e "*** $$lib:\n$$lines"; \
 | 
					
						
							| 
									
										
										
										
											2001-05-26 10:29:51 +00:00
										 |  |  | 	  fi \
 | 
					
						
							|  |  |  | 	done | 
					
						
							| 
									
										
										
										
											2001-04-16 17:39:07 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											1999-08-09 18:06:01 +00:00
										 |  |  | clean: clean-recursive | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | distclean: clean distclean-recursive | 
					
						
							| 
									
										
										
										
											2002-02-13 20:48:29 +00:00
										 |  |  | 	rm -f $(DISTCLEAN_FILES) | 
					
						
							|  |  |  | 	rm -f Makefile config.cache config.status libtool *.tar.gz  | 
					
						
							|  |  |  | 	rm -f sane-backends-*.lsm | 
					
						
							| 
									
										
										
										
											2002-01-10 17:07:18 +00:00
										 |  |  | 	rm -f japi/Makefile testsuite/Makefile | 
					
						
							| 
									
										
										
										
											2002-02-13 20:48:29 +00:00
										 |  |  | 	rm -f $(addprefix japi/,$(DISTCLEAN_FILES)) | 
					
						
							|  |  |  | 	rm -f $(addprefix testsuite/,$(DISTCLEAN_FILES)) | 
					
						
							| 
									
										
										
										
											2002-01-08 19:12:00 +00:00
										 |  |  | 	rm -rf $(distdir) | 
					
						
							| 
									
										
										
										
											1999-08-09 18:06:01 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | depend: depend-recursive | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | all-recursive install-recursive clean-recursive distclean-recursive \ | 
					
						
							| 
									
										
										
										
											2001-05-21 20:20:54 +00:00
										 |  |  | depend-recursive uninstall-recursive: | 
					
						
							|  |  |  | 	@for subdir in $(SUBDIRS); do		\
 | 
					
						
							| 
									
										
										
										
											1999-08-09 18:06:01 +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 19:12:00 +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) japi testsuite ; do \
 | 
					
						
							|  |  |  | 	  mkdir $(distdir)/$$subdir || exit 1; \
 | 
					
						
							|  |  |  | 	  chmod 777 $(distdir)/$$subdir; \
 | 
					
						
							|  |  |  | 	  (cd $$subdir && $(MAKE) $@) || exit 1; \
 | 
					
						
							|  |  |  | 	done | 
					
						
							|  |  |  | 	tar chzf $(distdir).tar.gz $(distdir) | 
					
						
							|  |  |  | 	rm -fr $(distdir) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | $(PACKAGE)-$(VERSION).tar.gz: dist | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | sane-backends: dist lsm |