49 lines
		
	
	
		
			997 B
		
	
	
	
		
			Makefile
		
	
	
	
			
		
		
	
	
			49 lines
		
	
	
		
			997 B
		
	
	
	
		
			Makefile
		
	
	
	
SHELL = /bin/sh
 | 
						|
 | 
						|
PKGNAME=scsh-expect
 | 
						|
RELEASE=0.1
 | 
						|
 | 
						|
distname=$(PKGNAME)-$(RELEASE)
 | 
						|
 | 
						|
distdir = /tmp
 | 
						|
 | 
						|
DISTFILES=README \
 | 
						|
	INSTALL \
 | 
						|
	COPYING \
 | 
						|
	AUTHORS \
 | 
						|
	pkg-def.scm \
 | 
						|
	scheme/interact.scm \
 | 
						|
	scheme/expect.scm \
 | 
						|
	scheme/chat.scm \
 | 
						|
	scheme/packages.scm \
 | 
						|
	scheme/tty-utils.scm \
 | 
						|
	doc/chat.doc \
 | 
						|
	doc/expect.doc \
 | 
						|
	examples/timed-choice.scm \
 | 
						|
	examples/ssh-same-path.scm \
 | 
						|
	examples/ping-and-mail.scm \
 | 
						|
 | 
						|
.PHONY: dist
 | 
						|
 | 
						|
dist:
 | 
						|
	distname=$(distname) &&						\
 | 
						|
	distfile=$(distdir)/$$distname.tar.gz &&			\
 | 
						|
	if [ -d $(distdir) ] &&						\
 | 
						|
	   [ -w $$distfile -o -w $(distdir) ]; then			\
 | 
						|
		rm -f $$distname &&					\
 | 
						|
		ln -s . $$distname &&					\
 | 
						|
		files='' &&						\
 | 
						|
		for i in $(DISTFILES); do				\
 | 
						|
			if [ "$$i" != "c/sysdep.h" ]; then		\
 | 
						|
				files="$$files $$distname/$$i";		\
 | 
						|
			fi						\
 | 
						|
		done &&							\
 | 
						|
		tar --exclude .cvsignore --exclude CVS -cf - $$files |	\
 | 
						|
			gzip --best >$$distfile &&			\
 | 
						|
		rm $$distname;						\
 | 
						|
	else								\
 | 
						|
		echo "Can't write $$distfile" >&2;			\
 | 
						|
		exit 1;							\
 | 
						|
	fi
 | 
						|
 |