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 | 7aa520dc2d41409f3b559fad648d7283d15bde49 (patch) | |
tree | c843f7025db678bea44103207af5ef210f0992ed /gfx/Makefile | |
parent | Move bin man pages to bin/man (diff) | |
download | src-7aa520dc2d41409f3b559fad648d7283d15bde49.tar.gz src-7aa520dc2d41409f3b559fad648d7283d15bde49.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 |