first pass for new make
[unix-history] / usr / src / usr.bin / locate / locate / Makefile
index 772dba0..6a5a749 100644 (file)
@@ -1,58 +1,10 @@
-#
-# Copyright (c) 1988 The Regents of the University of California.
-# All rights reserved.
-#
-# 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.1 (Berkeley) %G%
-#
-CFLAGS=        -O
-LIBC=  /usr/lib/libc.a
-SRCS=  locate.c bigram.c code.c
-OBJS=  locate.o bigram.o code.o
-MAN=   locate.0
+#      @(#)Makefile    5.2 (Berkeley) %G%
 
 
-all: locate bigram code
+PROG=  locate
 
 
-bigram code locate:${LIBC}
-       ${CC} ${CFLAGS} -o $@ $@.c
+beforeinstall:
+       install -c -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
+           ${.CURDIR}/updatedb.csh ${DESTDIR}/usr/libexec/locate.updatedb
 
 
-clean:
-       rm -f ${OBJS} core locate bigram code
-
-cleandir: clean
-       rm -f ${MAN} tags .depend
-
-depend: ${SRCS}
-       mkdep -p ${CFLAGS} ${SRCS}
-
-install: ${MAN}
-       install -s -o bin -g bin -m 755 locate ${DESTDIR}/usr/bin
-       install -s -o bin -g bin -m 755 code \
-           ${DESTDIR}/usr/libexec/locate.code
-       install -s -o bin -g bin -m 755 bigram \
-           ${DESTDIR}/usr/libexec/locate.bigram
-       install -c -o bin -g bin -m 755 updatedb.csh \
-           ${DESTDIR}/usr/libexec/locate.updatedb
-       install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat1
-
-lint: ${SRCS}
-       lint ${CFLAGS} locate.c
-       lint ${CFLAGS} bigram.c
-       lint ${CFLAGS} code.c
-
-tags: ${SRCS}
-       ctags locate.c
-       ctags -a bigram.c
-       ctags -a code.c
-       sort -o tags tags
+.include "../../Makefile.inc"
+.include <bsd.prog.mk>