about summary refs log tree commit diff stats
path: root/Makefile
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2025-05-03 23:05:33 +0200
committerbptato <nincsnevem662@gmail.com>2025-05-04 00:22:04 +0200
commitf20cd8db32900d34036c38f86e3689cd86358253 (patch)
tree038acd5c50b557e02ef6f29406d1f1c670913cc6 /Makefile
parent015aa0fd92ece4bdc1f645131b96369f801ed961 (diff)
downloadchawan-f20cd8db32900d34036c38f86e3689cd86358253.tar.gz
Makefile: remove submodule target, update docs
submodule has been unused for a while now, should be OK to remove it.

I've also gotten tired of the tables on the man page being borderline
unreadable, so I've hacked some borders onto them.  Ugly, but works.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile15
1 files changed, 7 insertions, 8 deletions
diff --git a/Makefile b/Makefile
index 20fd7689..0492253d 100644
--- a/Makefile
+++ b/Makefile
@@ -197,11 +197,14 @@ $(OBJDIR)/man/cha-%.md: doc/%.md md2manpreproc
 	@mkdir -p "$(OBJDIR)/man"
 	./md2manpreproc $< > $@
 
-doc/cha-%.5: $(OBJDIR)/man/cha-%.md
+$(OBJDIR)/man/cha-%.md.roff: $(OBJDIR)/man/cha-%.md
 	pandoc --standalone --to man $< -o $@
 
-doc/cha-%.7: $(OBJDIR)/man/cha-%.md
-	pandoc --standalone --to man $< -o $@
+doc/cha-%.5: $(OBJDIR)/man/cha-%.md.roff
+	awk 'last=="T}" && $$1=="T{" {print "_"} {last=$$1} 1' $< > $@
+
+doc/cha-%.7: $(OBJDIR)/man/cha-%.md.roff
+	awk 'last=="T}" && $$1=="T{" {print "_"} {last=$$1} 1' $< > $@
 
 .PHONY: clean
 clean:
@@ -215,7 +218,7 @@ distclean: clean
 manpages1 = cha.1 mancha.1
 manpages5 = cha-config.5 cha-mailcap.5 cha-mime.types.5 cha-localcgi.5 \
 	cha-urimethodmap.5
-manpages7 = cha-protocols.7 cha-api.7 cha-troubleshooting.7 cha-image.7 cha-css.7
+manpages7 = cha-protocols.7 cha-api.7 cha-troubleshooting.7 cha-image.7 cha-css.7 cha-terminal.7
 
 manpages = $(manpages1) $(manpages5) $(manpages7)
 
@@ -284,10 +287,6 @@ uninstall:
 	for f in cha-protocols.5 cha-api.5 cha-troubleshooting.5 cha-image.5; do rm -f "$(DESTDIR)$(MANPREFIX5)/$$f"; done
 	for f in $(manpages1); do rm -f "$(DESTDIR)$(MANPREFIX1)/$$f"; done
 
-.PHONY: submodule
-submodule:
-	echo 'We no longer use submodules; you can safely drop "make submodule" from build scripts.'
-
 test/net/run: test/net/run.nim
 	$(NIMC) test/net/run.nim