install correct aliases file
[unix-history] / usr / src / usr.sbin / config / Makefile
index d5876ce..b696ed9 100644 (file)
@@ -1,28 +1,59 @@
 #
 #
-#      Makefile        1.9     83/03/28
+# Copyright (c) 1988 Regents of the University of California.
+# All rights reserved.
 #
 #
-CFILES=        y.tab.c main.c lex.yy.c mkioconf.c mkmakefile.c mkubglue.c mkheaders.c
-OBJS=  y.tab.o main.o lex.yy.o mkioconf.o mkmakefile.o mkubglue.o mkheaders.o
+# Redistribution and use in source and binary forms are permitted
+# provided that the above copyright notice and this paragraph are
+# duplicated in all such forms and that any documentation,
+# advertising materials, and other materials related to such
+# distribution and use acknowledge that the software was developed
+# by the University of California, Berkeley.  The name of the
+# University may not be used to endorse or promote products derived
+# from this software without specific prior written permission.
+# THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
+# IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
+# WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
+#
+#      @(#)Makefile    5.8 (Berkeley) %G%
+#
+CFLAGS=        -O
+LIBC=  /lib/libc.a
+LIBS=  -ll
+SRCS=  y.tab.c main.c lex.yy.c mkioconf.c mkmakefile.c \
+       mkglue.c mkheaders.c mkswapconf.c
+OBJS=  y.tab.o main.o lex.yy.o mkioconf.o mkmakefile.o \
+       mkglue.o mkheaders.o mkswapconf.o
+MAN=   config.0
 
 
-CFLAGS=-O
-LDFLAGS=-ll
+all: config
 
 
-config: ${OBJS}
-       ${CC} ${OBJS} -o config ${LDFLAGS}
+config: ${OBJS} ${LIBC}
+       ${CC} -o $@ ${OBJS} ${LIBS}
 
 lex.yy.c: config.l
        lex config.l
 
 
 lex.yy.c: config.l
        lex config.l
 
-y.tab.o: y.tab.c
+y.tab.h: 
+       yacc -d config.y
 
 y.tab.c: config.y
 
 y.tab.c: config.y
-       yacc -d config.y
+       yacc config.y
 
 clean:
 
 clean:
-       rm -f ${OBJS} lex.yy.c y.tab.c y.tab.h config
+       rm -f ${OBJS} lex.yy.c y.tab.c y.tab.h config core
+
+cleandir: clean
+       rm -f ${MAN} tags .depend
+
+depend: y.tab.h ${SRCS}
+       mkdep ${CFLAGS} ${SRCS}
+
+install: ${MAN}
+       install -s -o bin -g bin -m 755 config ${DESTDIR}/etc/config
+       install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8
 
 
-install:
-       install -s config ${DESTDIR}/etc/config
+lint: ${SRCS}
+       lint ${CFLAGS} ${SRCS}
 
 
-lint: ${CFILES}
-       lint ${CFILES}
+tags: ${SRCS}
+       ctags ${SRCS}