diff options
author | June McEnroe <june@causal.agency> | 2018-09-11 22:11:17 -0400 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2018-09-11 22:11:17 -0400 |
commit | 5fa1300543782ec01e57242938437ecc63ed2a99 (patch) | |
tree | 5b33ed13811cce8cc9ea62d2849c312c125ed585 /gfx/Makefile | |
parent | Move bin man pages to bin/man (diff) | |
download | src-5fa1300543782ec01e57242938437ecc63ed2a99.tar.gz src-5fa1300543782ec01e57242938437ecc63ed2a99.zip |
Move gfx man pages to gfx/man
Diffstat (limited to 'gfx/Makefile')
-rw-r--r-- | gfx/Makefile | 14 |
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 |