Change to use the default bsd.prog.mk "install" target.
authoraoyama <aoyama@openbsd.org>
Fri, 24 Feb 2023 23:36:10 +0000 (23:36 +0000)
committeraoyama <aoyama@openbsd.org>
Fri, 24 Feb 2023 23:36:10 +0000 (23:36 +0000)
This also brings to install boot.8 man page correctly.

ok miod@

sys/arch/luna88k/stand/Makefile.inc
sys/arch/luna88k/stand/boot/Makefile

index 07f626e..ff80dac 100644 (file)
@@ -1,8 +1,8 @@
-#      $OpenBSD: Makefile.inc,v 1.2 2013/10/30 20:39:05 miod Exp $
+#      $OpenBSD: Makefile.inc,v 1.3 2023/02/24 23:36:10 aoyama Exp $
 #      $NetBSD: Makefile.inc,v 1.1 2013/01/06 07:04:49 tsutsui Exp $
 
 NOPIE=
-MDEC_DIR?=     /usr/mdec
+BINDIR=                /usr/mdec
 CFLAGS+=       -Wall -Werror -fno-stack-protector
 CFLAGS+=       -mmemcpy
 CFLAGS+=       -fno-builtin-printf -fno-builtin-putchar -fno-builtin-vprintf
index fc5d118..15b0569 100644 (file)
@@ -1,4 +1,4 @@
-#      $OpenBSD: Makefile,v 1.16 2023/02/15 12:43:32 aoyama Exp $
+#      $OpenBSD: Makefile,v 1.17 2023/02/24 23:36:11 aoyama Exp $
 #      $NetBSD: Makefile,v 1.9 2013/01/22 15:48:40 tsutsui Exp $
 #      @(#)Makefile    8.2 (Berkeley) 8/15/93
 
@@ -7,6 +7,7 @@ MANSUBDIR=luna88k
 
 .if ${MACHINE} == "luna88k"
 PROG=   boot
+INSTALL_STRIP=
 
 S= ${.CURDIR}/../../../..
 
@@ -65,9 +66,6 @@ ${PROG}: ${LDSCRIPT} ${OBJS} ${LIBS}
        ${LD} ${LINKFORMAT} -x -o ${PROG}.elf ${OBJS} ${LIBS}
        ${OBJCOPY} -S -O a.out-m88k-openbsd --impure ${PROG}.elf ${PROG}
 
-install: ${PROG}
-       install -m 555 -g bin -o bin ${PROG} ${DESTDIR}${MDEC_DIR}
-
 CLEANFILES+=   ${PROG}.elf
 
 .if !make(clean) && !make(cleandir) && !make(includes) && !make(obj)