about summary refs log tree commit diff
path: root/system.mk
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2021-01-27 22:35:39 -0500
committerJune McEnroe <june@causal.agency>2021-01-27 22:39:03 -0500
commit809d6629c97bd9c4bdf6c799e74a261bb510b1fd (patch)
tree38e7a60244090ad01cb0b9cef7fc88f1220c159c /system.mk
parentUpdate to man-pages-posix 2017-a (diff)
downloadexman-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.mk27
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}
bytes in my git repos. 2019-12-19Ignore about-filterJune McEnroe 2019-12-19Fix matching make tags with no sourcesJune McEnroe 2019-12-19Avoid matching := assignments as tagsJune McEnroe 2019-12-18Hide line numbers when rendering mdocJune McEnroe Hack: output an extra <td> after rendering mdoc so that line numbers can be hidden based on there being three. This required splitting source-filter and about-filter since on about pages there is no table. 2019-12-18Customize cgit CSSJune McEnroe 2019-12-18Use :target rather than :focus pseudo-classJune McEnroe :target persists after you click on something else. 2019-12-18Copy cgit auxiliary binaries properlyJune McEnroe 2019-12-18Add git.causal.agency cgit configJune McEnroe 2019-12-18Bail from hi if input is binaryJune McEnroe NULs in the input cause an infinite loop in htmlEscape, not to mention regexes obviously not working, etc. 2019-12-16Post "cgit setup"June McEnroe