diff options
author | June McEnroe <june@causal.agency> | 2021-01-27 22:35:39 -0500 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2021-01-27 22:39:03 -0500 |
commit | 809d6629c97bd9c4bdf6c799e74a261bb510b1fd (patch) | |
tree | 38e7a60244090ad01cb0b9cef7fc88f1220c159c /system.mk | |
parent | Update to man-pages-posix 2017-a (diff) | |
download | exman-809d6629c97bd9c4bdf6c799e74a261bb510b1fd.tar.gz exman-809d6629c97bd9c4bdf6c799e74a261bb510b1fd.zip |
Completely rewrite how manuals are fetched and installed
Also add section 6 manuals from NetBSD and OpenBSD!
Diffstat (limited to '')
-rw-r--r-- | system.mk | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/system.mk b/system.mk new file mode 100644 index 0000000..7ab5aba --- /dev/null +++ b/system.mk @@ -0,0 +1,27 @@ +PREFIX ?= /usr/local +SHAREDIR ?= ${PREFIX}/share +EXMANDIR ?= ${SHAREDIR}/exman + +CURL ?= curl +TAR ?= tar +ALLOW_FAILURE ?= false + +all: ${DISTFILES} + +.PRECIOUS: ${DISTFILES} + +${DISTFILES}: + ${CURL} -O ${MIRROR}/${.TARGET} + +clean: + rm -f ${DISTFILES} + +install: ${DISTFILES} + install -d ${EXMANDIR}/${SYSTEM} +.for distfile in ${DISTFILES} + ${TAR} -x -f ${distfile} -C ${EXMANDIR}/${SYSTEM} \ + --strip-components=${STRIP} '${FILES}' || ${ALLOW_FAILURE} +.endfor + +uninstall: + rm -fr ${EXMANDIR}/${SYSTEM} |