summary refs log tree commit diff
path: root/bin/html.mk
blob: c1f855952014ec12e35197307ee8c35cc67f2c6d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
WEBROOT ?= /usr/local/www/causal.agency

HTMLS = index.html png.html
HTMLS += ${BINS:=.html}
HTMLS += ${BSD:=.html}
HTMLS += ${GAMES:=.html}
HTMLS += ${TLS:=.html}

html: ${HTMLS}
	@true

install-html: ${HTMLS}
	install -d ${WEBROOT}/bin
	install -C -m 644 ${HTMLS} ${WEBROOT}/bin

${HTMLS}: html.sh scheme hilex htagml htmltags

htmltags: *.[chly] mtags Makefile html.mk *.sh
	rm -f $@
	for f in *.[chly]; do ctags -aw -f $@ $$f; done
	./mtags -a -f $@ Makefile html.mk *.sh

index.html: README.7 Makefile html.mk html.sh
	sh html.sh README.7 Makefile html.mk html.sh > $@

.SUFFIXES: .html

.c.html:
	sh html.sh man1/${<:.c=.1} $< > $@

.h.html:
	sh html.sh man3/${<:.h=.3} $< > $@

.l.html:
	sh html.sh man1/${<:.l=.1} $< > $@

.y.html:
	sh html.sh man1/${<:.y=.1} $< > $@

.sh.html:
	sh html.sh man1/${<:.sh=.1} $< > $@

.pl.html:
	sh html.sh man1/${<:.pl=.1} $< > $@

freecell.html: freecell.c man6/freecell.6
	sh html.sh man6/freecell.6 freecell.c > $@
McEnroe 2019-07-31Be silent about client errorsJune McEnroe 2019-07-31Update ingest terminalJune McEnroe 2019-07-31Import terminal emulation from shottyJune McEnroe 2019-07-29Pass original command to dispatchJune McEnroe 2019-07-29Rename wrapper to dispatchJune McEnroe 2019-07-29Track only the max client fdJune McEnroe 2019-07-28Do basic multiplexing in ingestJune McEnroe 2019-07-28Add empty commandsJune McEnroe 2019-07-28Rename ptee streamJune McEnroe 2019-07-28Remove ptee keybindsJune McEnroe 2019-07-28Import ptee from srcJune McEnroe 2019-07-28Remove old commandsJune McEnroe 2018-04-20Clean up pteeJune McEnroe 2018-04-20Uncommitted changes from months ago :(June McEnroe 2018-02-25Remove winchJune McEnroe 2018-02-25Echo at end of outputJune McEnroe 2018-02-25Add stopJune McEnroe 2018-02-25Switch back to static window sizingJune McEnroe 2018-02-25Add missing includeJune McEnroe 2018-02-25Define rules for multi-object binariesJune McEnroe 2018-02-25Rewrite everythingJune McEnroe 2018-02-22Hardcode path lengths in setupJune McEnroe 2018-02-22Add setup, start commandJune McEnroe 2018-02-22Indent list of streamsJune McEnroe 2018-02-22Add welcome message to ssh-commandJune McEnroe 2018-02-22Sleep before truncationJune McEnroe To give viewers a chance to catch up. I wonder how bad this will be. 2018-02-22List streams if none givenJune McEnroe 2018-02-22Set ForceCommand ssh-commandJune McEnroe 2018-02-22Rename command to ssh-commandJune McEnroe 2018-02-22Add command.shJune McEnroe 2018-02-22Factor out STREAM_SIZE for ingest and broadcastJune McEnroe 2018-02-22Handle EINTR from keventJune McEnroe 2018-02-22Include libutil in chroot.tarJune McEnroe