# @(#)Makefile 4.4 (Berkeley) 86/05/15
# The vi lessons come with the user-contributed software.
LESSONS
= files editor morefiles macros eqn C
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 \
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
# Flag BSD4_2 means 4.2 or later.
LLIB
= $(DESTDIR
)/usr
/lib
/learn
/bin
install -c
-s learn
$(DESTDIR
)/usr
/bin
install -s lrntee
$(LLIB
)
install -s lcount
$(LLIB
)
rm -f
*.o learn lrntee lcount errs
cmp learn
$(DESTDIR
)/usr
/bin
/learn
cmp lrntee
$(LLIB
)/lrntee
cmp lcount
$(LLIB
)/lcount
rm learn lrntee lcount
*.o
cc -o learn
$(CFLAGS
) $(OBJECTS
) $(LIBRARY
)
cc $(CFLAGS
) $@.c
-o
$@
$(LIBRARY
)
-rm -r
$(LLIB
)/..
/log
; mkdir
$(LLIB
)/..
/log
; chmod
+w
$(LLIB
)/..
/log
-@
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'