-#
-# Copyright (c) 1988 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 redistribution 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%
-#
+# @(#)Makefile 5.3 (Berkeley) %G%
-CFLAGS= -O
-LIBC= /lib/libc.a
-SRCS= reboot.c
-OBJS=
-MAN= vax.reboot.0 tahoe.reboot.0
+PROG= reboot
+NOMAN= noman
+DPADD= ${LIBUTIL}
+LDADD= -lutil
-all: reboot
+all: vax.reboot.0 tahoe.reboot.0
-reboot: ${LIBC}
- ${CC} -o $@ ${CFLAGS} $@.c -lutil
+beforeinstall:
+ install -c -o ${MANOWN} -g ${MANGRP} -m ${MANMODE} vax.reboot.0 \
+ ${DESTDIR}${MANDIR}8/vax
+ install -c -o ${MANOWN} -g ${MANGRP} -m ${MANMODE} tahoe.reboot.0 \
+ ${DESTDIR}${MANDIR}8/tahoe
-clean:
- rm -f ${OBJS} core reboot
-
-cleandir: clean
- rm -f ${MAN} tags .depend
-
-depend: ${SRCS}
- mkdep -p ${CFLAGS} ${SRCS}
-
-install: ${MAN}
- install -s -o bin -g bin -m 755 reboot ${DESTDIR}/etc/reboot
- install -c -o bin -g bin -m 444 vax.reboot.0 ${DESTDIR}/usr/man/cat8/vax
- install -c -o bin -g bin -m 444 tahoe.reboot.0 ${DESTDIR}/usr/man/cat8/tahoe
-
-lint: ${SRCS}
- lint ${CFLAGS} ${SRCS}
-
-tags: ${SRCS}
- ctags ${SRCS}
+.include <bsd.own.mk>
+.include <bsd.prog.mk>