# Copyright (c) 1980 Regents of the University of California.
# All rights reserved. The Berkeley software License Agreement
# specifies the terms and conditions for redistribution.
# @(#)Makefile 5.2 (Berkeley) %G%
CFILES
= y.tab.c main.c
lex.yy.c mkioconf.c mkmakefile.c \
mkubglue.c mkheaders.c mkswapconf.c
OBJS
= y.tab.o main.o
lex.yy.o mkioconf.o mkmakefile.o \
mkubglue.o mkheaders.o mkswapconf.o
${CC} ${OBJS} -o config
${LDFLAGS}
y.tab.h y.tab.c
: config.y
rm -f
${OBJS} lex.yy.c y.tab.c y.tab.h config
install -s config
${DESTDIR}/etc
/config
grep
'^#include' ${CFILES} | grep
-v
'<' | \
sed
-e
's/:[^"]*"\([^"]*\)".*/: \1/' \
-e
's,../[a-zA-Z]*/,,' | \
awk
' { if ($$1 != prev) { print rec; rec = $$0; prev = $$1; } \
else { if (length(rec $$2) > 78) { print rec; rec = $$0; } \
else rec = rec " " $$2 } } \
END { print rec } ' > makedep
echo
'$$r makedep' >>eddep
echo
'/^# DO NOT DELETE THIS LINE/+1,$$d' >eddep
echo
'$$r makedep' >>eddep
# DO NOT DELETE THIS LINE -- make depend uses it
lex.yy.o
: y.tab.h config.h
mkioconf.o
: y.tab.h config.h
mkmakefile.o
: y.tab.h config.h
mkubglue.o
: config.h y.tab.h
mkheaders.o
: config.h y.tab.h