From 12af3b51ee11579680794a236d2abaeb7f63e2b0 Mon Sep 17 00:00:00 2001 From: "C. McEnroe" Date: Sun, 3 May 2020 18:40:46 +0000 Subject: Add FreeBSD, NetBSD, OpenBSD, Linux, POSIX --- Makefile | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..e52672a --- /dev/null +++ b/Makefile @@ -0,0 +1,32 @@ +CURL ?= curl +TAR ?= tar + +SYSTEMS += freebsd +SYSTEMS += linux +SYSTEMS += netbsd +SYSTEMS += openbsd +SYSTEMS += posix + +all: ${SYSTEMS} + +.SUFFIXES: .tar .url + +.url.tar: + ${CURL} -f -o $@ "$$(cat $<)" + +.tar: + mkdir -p $@ + ${TAR} -x -f $< -C $@ --strip-components ${STRIP.$@} ${FILES.$@} + +FILES.freebsd = ./usr/share/man/ +FILES.netbsd = ./usr/share/man/ +FILES.openbsd = ./usr/share/man/ + +STRIP.freebsd = 4 +STRIP.linux = 1 +STRIP.netbsd = 4 +STRIP.openbsd = 4 +STRIP.posix = 1 + +clean: + rm -fr ${SYSTEMS} ${SYSTEMS:=.tar} -- cgit 1.4.1