summary refs log tree commit diff
path: root/bin/Makefile
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2018-09-11 22:08:54 -0400
committerJune McEnroe <june@causal.agency>2018-09-11 22:08:54 -0400
commitf42274227f16d6d59a5cd47923fb6962b1d7c5af (patch)
tree3b08aedce62ec84c3749f55856b87806d265915a /bin/Makefile
parentRewrite gfx.7 and render plaintext README (diff)
downloadsrc-f42274227f16d6d59a5cd47923fb6962b1d7c5af.tar.gz
src-f42274227f16d6d59a5cd47923fb6962b1d7c5af.zip
Move bin man pages to bin/man
Diffstat (limited to 'bin/Makefile')
-rw-r--r--bin/Makefile22
1 files changed, 11 insertions, 11 deletions
diff --git a/bin/Makefile b/bin/Makefile
index 7079aaae..fd3f1134 100644
--- a/bin/Makefile
+++ b/bin/Makefile
@@ -8,8 +8,8 @@ BINS_ALL = $(BINS) $(BINS_BSD) $(BINS_LINUX)
 GAMES_BSD = klon
 GAMES_ALL = $(GAMES_BSD)
 
-MAN1 = $(BINS_ALL:%=%.1)
-MAN6 = $(GAMES_ALL:%=%.6)
+MAN1 = $(BINS_ALL:%=man/%.1)
+MAN6 = $(GAMES_ALL:%=man/%.6)
 
 CFLAGS += -Wall -Wextra -Wpedantic
 LDLIBS = -lcurses -lm -lutil -lz
@@ -20,11 +20,6 @@ bsd: any $(BINS_BSD) $(GAMES_BSD)
 
 linux: any $(BINS_LINUX)
 
-.gitignore: Makefile
-	echo tags scheme.h *.o $(BINS_ALL) $(GAMES_ALL) scheme.png \
-		| tr ' ' '\n' \
-		> .gitignore
-
 tags: *.c
 	ctags -w *.c
 
@@ -39,9 +34,6 @@ atch: dtch
 open pbcopy pbpaste: pbd
 	ln -f pbd $@
 
-README: bin.7
-	mandoc bin.7 | sed $$'s/.\b//g' > README
-
 scheme.png: scheme
 	./scheme -t -g > scheme.png
 
@@ -50,7 +42,15 @@ setuid: bri
 	chmod u+s bri
 
 clean:
-	rm -f tags $(BINS_ALL) $(GAMES_ALL)
+	rm -f tags scheme.h *.o $(BINS_ALL) $(GAMES_ALL) scheme.png
+
+README: man/bin.7
+	mandoc man/bin.7 | sed $$'s/.\b//g' > README
+
+.gitignore: Makefile
+	echo tags scheme.h *.o $(BINS_ALL) $(GAMES_ALL) scheme.png \
+		| tr ' ' '\n' \
+		> .gitignore
 
 link:
 	mkdir -p $(PREFIX)/bin $(PREFIX)/share/man/man1 $(PREFIX)/share/man/man6