VERSION = 19990326

prefix = /usr/local
distname = teaser

# If you have a BSD system
# SYSTEM = "-DBSD=1"
# If you have a SVR4 system
# SYSTEM = "-DSVR4=1"


BINDIR = $(prefix)/bin
DOCDIR = $(prefix)/doc/$(distname)-$(VERSION)
DISTDIR = $(distname)-$(VERSION)

SRC = Makefile STEWARDSHIP COPYING GPL INSTALL  \
      CREDITS src README include scm

all: teaser 

teaser: 
	cd src && make CONDS=$(CONDS) SYSTEM=$(SYSTEM)


install: teaser 
	mkdir /var/spool/teaser
	mv src/teaser $(BINDIR)
	mkdir /etc/teaser
	cp scm/* /etc/teaser

dist: 
	-rm -fr $(DISTDIR)
	-rm $(DISTDIR).tar.gz
	mkdir $(DISTDIR)
	cp -r $(SRC) $(DISTDIR)
	cd $(DISTDIR) && make distclean
	tar -zcvf $(DISTDIR).tar.gz $(DISTDIR)

clean:
	cd src && make clean

distclean:
	cd src && make distclean



