head     1.2;
access   ;
symbols  ;
locks    ; strict;
comment  @# @;


1.2
date     86.03.11.14.02.50;  author root;  state Exp;
branches ;
next     1.1;

1.1
date     86.03.11.13.57.28;  author root;  state Exp;
branches ;
next     ;


desc
@initial checkin for release 3.04
@


1.2
log
@added dependencies for lcount and lrnte
@
text
@#
# $Header: Makefile,v 1.1 86/03/11 13:57:28 root Exp $
#
# $Log:	Makefile,v $
# Revision 1.1  86/03/11  13:57:28  root
# Initial revision
# 
#
#	@@(#)Makefile	4.3	(Berkeley)	83/06/19
#
DESTDIR=

LESSONS = files editor morefiles macros eqn C

FILES = lrnref.h \
	copy.c dounit.c getlesson.c learn.c list.c \
	makpipe.c maktee.c mem.c mysys.c selsub.c selunit.c \
	start.c whatnow.c wrapup.c \
	lcount.c lrntee.c \
	makefile

OBJECTS = copy.o dounit.o getlesson.o learn.o list.o mem.o \
	makpipe.o maktee.o mysys.o selsub.o selunit.o \
	start.o whatnow.o wrapup.o

CFLAGS = -O
LIBRARY =
LLIB	= $(DESTDIR)/usr/lib/learn/bin

all:	learn lrntee lcount

install:	all
	install -c -s learn $(DESTDIR)/usr/bin
	install -s learn $(LLIB)
	install -s lrntee $(LLIB)
	install -s lcount $(LLIB)

ccinstall:	all
	cp learn lrntee lcount $(LLIB)
	chmod 755 $(LLIB)/*
	strip $(LLIB)/*

clean:
	rm -f *.o learn lrntee lcount errs core a.out rslts

cmp:	all
	cmp learn $(DESTDIR)/usr/bin/learn
	cmp learn $(LLIB)/learn
	cmp lrntee $(LLIB)/lrntee
	cmp lcount $(LLIB)/lcount
	rm learn lrntee lcount *.o

learn: $(OBJECTS)
	cc -o learn $(CFLAGS) $(OBJECTS) $(LIBRARY)

$(OBJECTS): lrnref.h

lcount:	lcount.c
lrntee:	lrntee.c
lcount lrntee:
	cc $(CFLAGS) $@@.c -o $@@ $(LIBRARY)

log:
	-rm -r $(LLIB)/../log; mkdir $(LLIB)/../log; chmod +w $(LLIB)/../log

check:
	-@@test -r $(LLIB)/lrntee || echo 'lrntee not present; make lrntee'
	-@@test -r $(LLIB)/lcount || echo 'lcount not present; make lcount'
	-@@test -r $(LLIB)/../log || echo 'log directory not present; make log if you want logging'
@


1.1
log
@Initial revision
@
text
@d2 1
a2 1
# $Header$
d4 4
a7 1
# $Log$
d58 2
@
