case $CONFIG in
'')
    if test ! -f config.sh; then
	ln ../config.sh . || \
	ln ../../config.sh . || \
	ln ../../../config.sh . || \
	ln ../../../../config.sh . || \
	(echo "Can't find config.sh."; exit 1)
    fi
    . ./config.sh
    ;;
esac
case "$0" in
*/*) cd `expr X$0 : 'X\(.*\)/'` ;;
esac

echo "Extracting src/list/Makefile (with variable substitutions)"
cat >Makefile <<!GROK!THIS!
#!$make
# $Id: Makefile.SH,v 1.5 2006/06/25 10:41:05 hurtta Exp $
#  Makefile for the ELM mail program.
#
# Variables
#	Variables established by Configure
AR		=	$ar
CC		=	$cc
CCFLAGS		=	$ccflags $picflag $xencf
CHMOD		=	$chmod
LINT		=	$lint
OPTIMIZE	=	$optimize
RANLIB		=	$ranlib
RM		= 	$rm -f
TOUCH		=	$touch
TAGS		=	ctags

!GROK!THIS!

cat >>Makefile <<'!NO!SUBS!'
#	Other general variables
CFLAGS		=	-I$(INCLDIR) $(CCFLAGS) $(OPTIMIZE) $(DEBUG) 
INCLDIR		=	../../hdrs
LINTFLAGS	=	-I$(INCLDIR)
SHELL		=	/bin/sh

OBJ		=	list.o reply.o select.o info.o visit_mailbox.o

all:			Makefile liblist.a

install_s:		Makefile liblist.a

uninstall_s:		

clean:
	$(RM) $(OBJ) libblock.a


Makefile: Makefile.SH ../../config.sh
	@echo "You must run 'sh Configure -S' or 'sh Configure'"
	exit 1

liblist.a:		$(OBJ)
			$(AR) r $@ $?
			$(RANLIB) $@

#	Dependencies of header files upon other header files they include
.PRECIOUS:		$(INCLDIR)/defs.h $(INCLDIR)/headers.h def_list.h

$(INCLDIR)/defs.h:	$(INCLDIR)/../config.h $(INCLDIR)/sysdefs.h
			$(CHMOD) u+w $@
			$(TOUCH) $@

$(INCLDIR)/headers.h:	$(INCLDIR)/defs.h $(INCLDIR)/mime.h $(INCLDIR)/me.h $(INCLDIR)/elmlib.h
			$(CHMOD) u+w $@
			$(TOUCH) $@

def_list.h:		$(INCLDIR)/headers.h $(INCLDIR)/me.h $(INCLDIR)/mboxlib.h
			$(CHMOD) u+w $@
			$(TOUCH) $@

#	Dependencies of C object files

list.o:		     def_list.h $(INCLDIR)/s_me.h
reply.o:	     def_list.h $(INCLDIR)/s_me.h $(INCLDIR)/mailerlib.h
select.o:	     def_list.h $(INCLDIR)/s_me.h
info.o:	     def_list.h $(INCLDIR)/s_me.h $(INCLDIR)/mailerlib.h
visit_mailbox.o:	def_list.h $(INCLDIR)/s_elm.h
!NO!SUBS!



syntax highlighted by Code2HTML, v. 0.9.1