diff options
Diffstat (limited to '')
-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 |