From d13ff15bbb604b3f50042ef531ddb7f565e3c0d6 Mon Sep 17 00:00:00 2001 From: Curtis McEnroe Date: Fri, 7 Sep 2018 18:39:35 -0400 Subject: Link man pages in ~/.local --- bin/Makefile | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'bin/Makefile') diff --git a/bin/Makefile b/bin/Makefile index 6e92483d..6038d2e4 100644 --- a/bin/Makefile +++ b/bin/Makefile @@ -1,7 +1,10 @@ +PREFIX = ~/.local + ANY_BINS = atch dtch glitch hnel modem open pbcopy pbd pbpaste pngo scheme wake xx BSD_BINS = klon watch LIN_BINS = bri fbatt fbclock ALL_BINS = $(ANY_BINS) $(BSD_BINS) $(LIN_BINS) +ALL_MANS = $(ALL_BINS:%=%.1) CFLAGS += -Wall -Wextra -Wpedantic LDLIBS = -lcurses -lm -lutil -lz @@ -40,8 +43,10 @@ clean: rm -f tags $(ALL_BINS) link: - mkdir -p ~/.local/bin - ln -s -f $(ALL_BINS:%=$(PWD)/%) ~/.local/bin + mkdir -p $(PREFIX)/bin $(PREFIX)/share/man/man1 + ln -s -f $(ALL_BINS:%=$(PWD)/%) $(PREFIX)/bin + ln -s -f $(ALL_MANS:%=$(PWD)/%) $(PREFIX)/share/man/man1 unlink: - rm -f $(ALL_BINS:%=~/.local/bin/%) + rm -f $(ALL_BINS:%=$(PREFIX)/bin/%) + rm -f $(ALL_MANS:%=$(PREFIX)/share/man/man1/%) -- cgit 1.4.1 2622fe671b8ca9af0981'>refs log tree commit diff
path: root/git (unfollow)
Commit message (Expand)Author
2018-10-12git: update to v2.19.1Christian Hesse
2018-09-11ui-ssdiff: ban strcat()Christian Hesse
2018-09-11ui-ssdiff: ban strncpy()Christian Hesse
2018-09-11ui-shared: ban strcat()Christian Hesse
2018-09-11ui-patch: ban sprintf()Christian Hesse
2018-09-11ui-log: ban strncpy()Christian Hesse
2018-09-11ui-log: ban strcpy()Christian Hesse
2018-09-11parsing: ban sprintf()Christian Hesse
2018-09-11parsing: ban strncpy()Christian Hesse
2018-08-28filters: generate anchor links from markdownChristian Hesse
2018-08-03Bump version.Jason A. Donenfeld
2018-08-03clone: fix directory traversalJason A. Donenfeld
2018-08-03config: record repo.snapshot-prefix in the per-repo configKonstantin Ryabitsev