diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 32 |
1 files changed, 32 insertions, 0 deletions
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} |