]> Nishi Git Mirror - sp.git/commitdiff
macppc = powerpc
author諏訪子 <suwako@076.moe>
Fri, 13 Dec 2024 07:06:15 +0000 (16:06 +0900)
committer諏訪子 <suwako@076.moe>
Fri, 13 Dec 2024 07:06:15 +0000 (16:06 +0900)
Makefile

index 96203f3c34e4c94622715d010d8a66fd4c1a2b6f..1a50eb023453e68948195d0949be9b496e3a5452 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -26,6 +26,8 @@ FAMILY = darwin
 
 .if ${UNAME_M} == "x86_64"
 ARCH = amd64
+.elif ${UNAME_M} == "macppc"
+ARCH = powerpc
 .endif
 
 NAME != cat main.c | grep "const char \*sofname" | awk '{print $$5}' | \
@@ -52,9 +54,9 @@ DATAPREFIX = ${PREFIX}/data
 .endif
 
 CNFPREFIX = /etc
-.if ${UNAME_S} == "Haiku"
+.if ${OS} == "haiku"
 CNFPREFIX = ${DATAPREFIX}
-.elif ${UNAME_S} == "FreeBSD" || ${UNAME_S} == "NetBSD" || ${UNAME_S} == "Dragonfly"
+.elif ${OS} == "freebsd" || ${OS} == "netbsd" || ${OS} == "dragonfly"
 CNFPREFIX = ${PREFIX}/etc
 .endif