commit 31501de6188d753a5ff1b5342383f20f8e9a3eca
parent 8433918de3acf026a3c134a63af631e60d76837f
Author: Bastien Dejean <nihilhill@gmail.com>
Date: Sat, 26 Sep 2015 11:25:23 +0200
Merge pull request #60 from nmeum/master
Install example files to /usr/share/doc/sxhkd/examples
Diffstat:
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git a/Makefile b/Makefile
@@ -10,6 +10,7 @@ LDFLAGS += -L$(PREFIX)/lib
PREFIX ?= /usr/local
BINPREFIX = $(PREFIX)/bin
MANPREFIX = $(PREFIX)/share/man
+DOCPREFIX = $(PREFIX)/share/doc/$(NAME)
SRC = $(wildcard *.c)
OBJ = $(SRC:.c=.o)
@@ -36,10 +37,13 @@ install:
cp -pf $(NAME) "$(DESTDIR)$(BINPREFIX)"
mkdir -p "$(DESTDIR)$(MANPREFIX)"/man1
cp -p doc/$(NAME).1 "$(DESTDIR)$(MANPREFIX)"/man1
+ mkdir -p "$(DESTDIR)$(DOCPREFIX)"
+ cp -pr examples "$(DESTDIR)$(DOCPREFIX)"/examples
uninstall:
rm -f "$(DESTDIR)$(BINPREFIX)"/$(NAME)
rm -f "$(DESTDIR)$(MANPREFIX)"/man1/$(NAME).1
+ rm -rf "$(DESTDIR)$(DOCPREFIX)"
doc:
a2x -v -d manpage -f manpage -a revnumber=$(VERSION) doc/$(NAME).1.txt