about summary refs log tree commit diff stats
path: root/Makefile
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2023-09-26 17:09:33 +0200
committerbptato <nincsnevem662@gmail.com>2023-09-26 17:09:33 +0200
commit435882f19022c1105ce3b9cb5f8500408b835922 (patch)
tree67ee42aac68bb72758428d8097388d2a0fe99096 /Makefile
parent32a528939d6f39cefc00bb1742cf75739c64f006 (diff)
downloadchawan-435882f19022c1105ce3b9cb5f8500408b835922.tar.gz
small Makefile improvement
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 9bd56b00..8c244367 100644
--- a/Makefile
+++ b/Makefile
@@ -59,10 +59,13 @@ $(OBJDIR)/cha-%.md: doc/%.md | $(OBJDIR)/
 $(OBJDIR)/cha-%.5: $(OBJDIR)/cha-%.md
 	pandoc --standalone --to man $< -o $@
 
-.PHONY: manpage
-manpage: $(OBJDIR)/cha-config.5 $(OBJDIR)/cha-mailcap.5 $(OBJDIR)/cha-mime.types.5
+$(OBJDIR)/cha.1: doc/cha.1
 	cp doc/cha.1 "$(OBJDIR)/cha.1"
 
+.PHONY: manpage
+manpage: $(OBJDIR)/cha-config.5 $(OBJDIR)/cha-mailcap.5 \
+		$(OBJDIR)/cha-mime.types.5 $(OBJDIR)/cha.1
+
 .PHONY: install
 install:
 	mkdir -p "$(DESTDIR)$(prefix)/bin"