-#
-# 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.2 (Berkeley) %G%
-#
-
-CFLAGS= -O
-LIBC= /lib/libc.a
-SRCS= reboot.c
-OBJS=
-MAN= vax.reboot.0 tahoe.reboot.0
-
-all: reboot
-
-reboot: ${LIBC}
- ${CC} -o $@ ${CFLAGS} $@.c -lutil
-
-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}/sbin
- 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}
+# @(#)Makefile 5.9 (Berkeley) %G%
+
+PROG= reboot
+DPADD= ${LIBUTIL}
+LDADD= -lutil
+MAN8= reboot.0 boot_hp300.0 boot_i386.0 boot_tahoe.0 boot_vax.0
+MLINKS= halt.8 reboot.8
+LINKS= ${BINDIR}/reboot ${BINDIR}/halt
+
+afterinstall:
+ ${MINSTALL} boot_hp300.0 ${DESTDIR}${MANDIR}8/hp300/boot.0
+ ${MINSTALL} boot_i386.0 ${DESTDIR}${MANDIR}8/i386/boot.0
+ ${MINSTALL} boot_tahoe.0 ${DESTDIR}${MANDIR}8/tahoe/boot.0
+ ${MINSTALL} boot_vax.0 ${DESTDIR}${MANDIR}8/vax/boot.0
+
+.include <bsd.man.mk>
+.include <bsd.prog.mk>