diff options
author | bptato <nincsnevem662@gmail.com> | 2024-12-30 20:02:12 +0100 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2024-12-30 20:02:12 +0100 |
commit | 92b99ad3480bce8ce8e76b423ebac7b5eecf92a1 (patch) | |
tree | ebe3cc447a08bc057365d041e0085f986d687298 /Makefile | |
parent | b2da6ac64368761599f9e6f2db9d8c7722b9c506 (diff) | |
download | chawan-92b99ad3480bce8ce8e76b423ebac7b5eecf92a1.tar.gz |
Add built-in image viewer
It works by emitting a base64 URI inside an img tag. Very inefficient, but useful if no external viewer is set up (e.g. over SSH).
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Makefile b/Makefile index d4d2d03b..703bf48e 100644 --- a/Makefile +++ b/Makefile @@ -59,6 +59,7 @@ all: $(OUTDIR_BIN)/cha $(OUTDIR_BIN)/mancha $(OUTDIR_CGI_BIN)/http \ $(OUTDIR_CGI_BIN)/finger $(OUTDIR_CGI_BIN)/about \ $(OUTDIR_CGI_BIN)/file $(OUTDIR_CGI_BIN)/ftp $(OUTDIR_CGI_BIN)/sftp \ $(OUTDIR_LIBEXEC)/dirlist2html $(OUTDIR_LIBEXEC)/uri2html \ + $(OUTDIR_LIBEXEC)/img2html \ $(OUTDIR_CGI_BIN)/man $(OUTDIR_CGI_BIN)/spartan \ $(OUTDIR_CGI_BIN)/stbi $(OUTDIR_CGI_BIN)/jebp $(OUTDIR_CGI_BIN)/canvas \ $(OUTDIR_CGI_BIN)/nanosvg $(OUTDIR_CGI_BIN)/sixel $(OUTDIR_CGI_BIN)/resize \ @@ -129,6 +130,7 @@ $(OUTDIR_LIBEXEC)/gopher2html: $(twtstr) $(OUTDIR_LIBEXEC)/ansi2html: src/types/color.nim src/io/poll.nim $(twtstr) $(dynstream) $(OUTDIR_LIBEXEC)/md2html: $(twtstr) $(OUTDIR_LIBEXEC)/dirlist2html: $(twtstr) +$(OUTDIR_LIBEXEC)/img2html: $(twtstr) $(OUTDIR_CGI_BIN)/%: adapter/protocol/%.nim @mkdir -p "$(OUTDIR_CGI_BIN)" @@ -190,7 +192,7 @@ manpage: $(manpages:%=doc/%) protocols = http about file ftp sftp gopher gemini finger man spartan stbi \ jebp sixel canvas resize chabookmark nanosvg -converters = gopher2html md2html ansi2html gmi2html dirlist2html uri2html +converters = gopher2html md2html ansi2html gmi2html dirlist2html uri2html img2html tools = urlenc nc .PHONY: install |