summary refs log tree commit diff
path: root/gfx/Makefile
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2018-09-11 22:11:17 -0400
committerJune McEnroe <june@causal.agency>2018-09-11 22:11:17 -0400
commit5fa1300543782ec01e57242938437ecc63ed2a99 (patch)
tree5b33ed13811cce8cc9ea62d2849c312c125ed585 /gfx/Makefile
parentMove bin man pages to bin/man (diff)
downloadsrc-5fa1300543782ec01e57242938437ecc63ed2a99.tar.gz
src-5fa1300543782ec01e57242938437ecc63ed2a99.zip
Move gfx man pages to gfx/man
Diffstat (limited to 'gfx/Makefile')
-rw-r--r--gfx/Makefile14
1 files changed, 7 insertions, 7 deletions
diff --git a/gfx/Makefile b/gfx/Makefile
index 93f04ec0..192800c5 100644
--- a/gfx/Makefile
+++ b/gfx/Makefile
@@ -2,7 +2,7 @@ GFX ?= cocoa
 PREFIX = ~/.local
 
 BINS = brot gfxx
-MAN1 = $(BINS:%=%.1)
+MAN1 = $(BINS:%=man/%.1)
 
 CFLAGS += -Wall -Wextra -Wpedantic
 LDLIBS = -lm -lz
@@ -11,9 +11,6 @@ LDLIBS_x11 = -lX11
 
 all: .gitignore tags $(BINS)
 
-.gitignore: Makefile
-	echo '*.o' tags $(BINS) | tr ' ' '\n' > .gitignore
-
 tags: *.h *.c
 	ctags -w *.h *.c
 
@@ -27,12 +24,15 @@ brot: brot.o $(GFX).o
 gfxx: gfxx.o $(GFX).o
 	$(CC) $(LDFLAGS) gfxx.o $(GFX).o $(LDLIBS) $(LDLIBS_$(GFX)) -o $@
 
-README: gfx.7
-	mandoc gfx.7 | sed $$'s/.\b//g' > README
-
 clean:
 	rm -f tags *.o $(BINS)
 
+README: man/gfx.7
+	mandoc man/gfx.7 | sed $$'s/.\b//g' > README
+
+.gitignore: Makefile
+	echo '*.o' tags $(BINS) | tr ' ' '\n' > .gitignore
+
 link:
 	mkdir -p $(PREFIX)/bin $(PREFIX)/share/man/man1
 	ln -s -f $(BINS:%=$(PWD)/%) $(PREFIX)/bin