summary refs log tree commit diff
path: root/gfx
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--gfx/Makefile14
-rw-r--r--gfx/man/brot.1 (renamed from gfx/brot.1)0
-rw-r--r--gfx/man/gfx.7 (renamed from gfx/gfx.7)0
-rw-r--r--gfx/man/gfxx.1 (renamed from gfx/gfxx.1)0
4 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
diff --git a/gfx/brot.1 b/gfx/man/brot.1
index 71a0da01..71a0da01 100644
--- a/gfx/brot.1
+++ b/gfx/man/brot.1
diff --git a/gfx/gfx.7 b/gfx/man/gfx.7
index 6a7097f1..6a7097f1 100644
--- a/gfx/gfx.7
+++ b/gfx/man/gfx.7
diff --git a/gfx/gfxx.1 b/gfx/man/gfxx.1
index 19a25c10..19a25c10 100644
--- a/gfx/gfxx.1
+++ b/gfx/man/gfxx.1