diff options
author | June McEnroe <june@causal.agency> | 2018-09-11 22:08:54 -0400 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2018-09-11 22:08:54 -0400 |
commit | 324026700184917040f360aced5995856eea838f (patch) | |
tree | 648db1074e9b7d573fc2d56710711b9bf1eaa0c0 /bin/Makefile | |
parent | Rewrite gfx.7 and render plaintext README (diff) | |
download | src-324026700184917040f360aced5995856eea838f.tar.gz src-324026700184917040f360aced5995856eea838f.zip |
Move bin man pages to bin/man
Diffstat (limited to '')
-rw-r--r-- | bin/Makefile | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/bin/Makefile b/bin/Makefile index 7079aaae..fd3f1134 100644 --- a/bin/Makefile +++ b/bin/Makefile @@ -8,8 +8,8 @@ BINS_ALL = $(BINS) $(BINS_BSD) $(BINS_LINUX) GAMES_BSD = klon GAMES_ALL = $(GAMES_BSD) -MAN1 = $(BINS_ALL:%=%.1) -MAN6 = $(GAMES_ALL:%=%.6) +MAN1 = $(BINS_ALL:%=man/%.1) +MAN6 = $(GAMES_ALL:%=man/%.6) CFLAGS += -Wall -Wextra -Wpedantic LDLIBS = -lcurses -lm -lutil -lz @@ -20,11 +20,6 @@ bsd: any $(BINS_BSD) $(GAMES_BSD) linux: any $(BINS_LINUX) -.gitignore: Makefile - echo tags scheme.h *.o $(BINS_ALL) $(GAMES_ALL) scheme.png \ - | tr ' ' '\n' \ - > .gitignore - tags: *.c ctags -w *.c @@ -39,9 +34,6 @@ atch: dtch open pbcopy pbpaste: pbd ln -f pbd $@ -README: bin.7 - mandoc bin.7 | sed $$'s/.\b//g' > README - scheme.png: scheme ./scheme -t -g > scheme.png @@ -50,7 +42,15 @@ setuid: bri chmod u+s bri clean: - rm -f tags $(BINS_ALL) $(GAMES_ALL) + rm -f tags scheme.h *.o $(BINS_ALL) $(GAMES_ALL) scheme.png + +README: man/bin.7 + mandoc man/bin.7 | sed $$'s/.\b//g' > README + +.gitignore: Makefile + echo tags scheme.h *.o $(BINS_ALL) $(GAMES_ALL) scheme.png \ + | tr ' ' '\n' \ + > .gitignore link: mkdir -p $(PREFIX)/bin $(PREFIX)/share/man/man1 $(PREFIX)/share/man/man6 |