# Makefile for sgopher
VERSION=0.2

# You may need to change the following
# INSTDIR is the directory for installation
INSTDIR=/usr/local/bin

DISTRIB=README CHANGES THANKS INSTALL Makefile sgopher.c shar.c make.com \
	woll.opt conf.h

sgopher: sgopher.c
	cc -o sgopher sgopher.c
	strip sgopher

shar: shar.c
	cc -o shar shar.c

sh: shar
	shar $(DISTRIB) > sgopher$(VERSION).sh

install:
	cp sgopher $(INSTDIR)

clean:
	rm sgopher

dist:
	tar cvf sgopher$(VERSION).tar $(DISTRIB)
	compress sgopher$(VERSION).tar

