# Copyright (c) 1983 Regents of the University of California.
# All rights reserved. The Berkeley software License Agreement
# specifies the terms and conditions for redistribution.
# @(#)Makefile 5.5 (Berkeley) %G%
# Subdirectories whose routines are included in the making of the
# master tags file (/usr/lib/tags); the Fortran libraries should
# be on this list, but we don't control them....
TAGSDIR
=libcurses libdbm libln libm libmp libpc libtermlib
# Programs that live in subdirectories, and have makefiles of their own.
SUBDIR
= lib2648 libF77 libI77 libU77 libcurses libdbm libg libln \
libom libm libmp libpc libplot libtermlib lpr me sendmail
# Shell scripts that need only be installed and are never removed.
# C programs that live in the current directory and do not need
# C programs that live in the current directory and need explicit make lines.
all: ${SUBDIR} ${STD} ${NSTD}
-for i in
${SUBDIR}; do \
(cd
$$i; make
${MFLAGS} DESTDIR
=${DESTDIR} install); done
-for i in
${SCRIPT}; do
(install -c
$$i.sh
${DESTDIR}/usr
/lib
/$$i); done
-for i in
${STD} ${NSTD}; do
(install $$i ${DESTDIR}/usr
/lib
/$$i); done
install -c lib.b
${DESTDIR}/usr
/lib
/lib.b
-for i in
${TAGSDIR}; do \
(cd
$$i; make
${MFLAGS} TAGSFILE
=..
/${TAGSFILE} tags); \
rm -f a.out core
*.s
*.o
tags
-for i in
${SUBDIR}; do
(cd
$$i; make
${MFLAGS} clean); done
-for i in
${STD} ${NSTD}; do \
(echo
$$i: $$i.c
>>makedep
; \
/bin
/grep
'^#[ ]*include' x.c
$$i.c | sed \
-e
's,<\(.*\)>,"/usr/include/\1",' \
-e
's/:[^"]*"\([^"]*\)".*/: \1/' \
-e
's/\.c//' >>makedep
); done
echo
'/^# DO NOT DELETE THIS LINE/+2,$$d' >eddep
echo
'$$r makedep' >>eddep
echo
'# DEPENDENCIES MUST END AT END OF FILE' >> Makefile
echo
'# IF YOU PUT STUFF HERE IT WILL GO AWAY' >> Makefile
echo
'# see make depend above' >> Makefile
# Files listed in ${NSTD} have explicit make lines given below.
# DO NOT DELETE THIS LINE -- make depend uses it
getNAME
: /usr
/include/stdio.h
# DEPENDENCIES MUST END AT END OF FILE
# IF YOU PUT STUFF HERE IT WILL GO AWAY