about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--Makefile1
-rw-r--r--exman.14
-rw-r--r--macOS/Makefile8
-rw-r--r--system.mk2
4 files changed, 13 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 275d6ac..02b2665 100644
--- a/Makefile
+++ b/Makefile
@@ -8,6 +8,7 @@ SYSTEMS += Linux
 SYSTEMS += NetBSD
 SYSTEMS += OpenBSD
 SYSTEMS += POSIX
+SYSTEMS += macOS
 
 all: exman
 .for system in ${SYSTEMS}
diff --git a/exman.1 b/exman.1
index 7b5ec02..e1c1316 100644
--- a/exman.1
+++ b/exman.1
@@ -1,4 +1,4 @@
-.Dd May  8, 2021
+.Dd June 21, 2021
 .Dt EXMAN 1
 .Os
 .
@@ -36,6 +36,8 @@ man-pages 5.11
 6.9
 .It POSIX
 man-pages-posix 2017
+.It macOS
+11.3
 .El
 .
 .Sh EXAMPLES
diff --git a/macOS/Makefile b/macOS/Makefile
new file mode 100644
index 0000000..2fd7b09
--- /dev/null
+++ b/macOS/Makefile
@@ -0,0 +1,8 @@
+SYSTEM = macOS
+VERSION = 11.3
+MIRROR = https://github.com/phracker/MacOSX-SDKs/releases/download/${VERSION}
+DISTFILES = MacOSX${VERSION}.sdk.tar.xz
+FILES = MacOSX${VERSION}.sdk/usr/share/man/man[1-9]/
+STRIP = 4
+
+.include "../system.mk"
diff --git a/system.mk b/system.mk
index 7ab5aba..9a56c9d 100644
--- a/system.mk
+++ b/system.mk
@@ -11,7 +11,7 @@ all: ${DISTFILES}
 .PRECIOUS: ${DISTFILES}
 
 ${DISTFILES}:
-	${CURL} -O ${MIRROR}/${.TARGET}
+	${CURL} -LO ${MIRROR}/${.TARGET}
 
 clean:
 	rm -f ${DISTFILES}