aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2018-11-25 14:33:31 +0100
committerMattias Andrée <maandree@kth.se>2018-11-25 14:35:27 +0100
commit32924560b5ca592730b51f435d286f880eadb270 (patch)
treeca35faf876b2249c161c40ee21a96dfbfff54edc
parentAdd man pages for {str,stp}[n]set (diff)
downloadlibsimple-32924560b5ca592730b51f435d286f880eadb270.tar.gz
libsimple-32924560b5ca592730b51f435d286f880eadb270.tar.bz2
libsimple-32924560b5ca592730b51f435d286f880eadb270.tar.xz
Install man pages
Signed-off-by: Mattias Andrée <maandree@kth.se>
-rw-r--r--Makefile14
1 files changed, 14 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 6937830..ad87bba 100644
--- a/Makefile
+++ b/Makefile
@@ -176,6 +176,15 @@ OBJ =\
vweprintf.o\
libsimple.o
+MAN0 =\
+ man0/libsimple-arg.h.0\
+ man0/libsimple.h.0
+
+MAN3 =\
+ man3/libsimple_*.3\
+ man3/LIBSIMPLE_*.3\
+ man3/*.3libsimple
+
TESTS = $(OBJ:.o=.test) libsimple-arg.test
all: libsimple.a $(TESTS)
@@ -200,16 +209,21 @@ check: $(TESTS)
install: libsimple.a
mkdir -p -- "$(DESTDIR)$(PREFIX)/lib"
mkdir -p -- "$(DESTDIR)$(PREFIX)/include/libsimple"
+ mkdir -p -- "$(DESTDIR)$(PREFIX)/share/man/man0"
+ mkdir -p -- "$(DESTDIR)$(PREFIX)/share/man/man3"
cp -- libsimple.a "$(DESTDIR)$(PREFIX)/lib"
cp -- libsimple.h "$(DESTDIR)$(PREFIX)/include"
cp -- libsimple-arg.h "$(DESTDIR)$(PREFIX)/include"
cp -- $(SUBHDR) "$(DESTDIR)$(PREFIX)/include/libsimple"
+ cp -- $(MAN0) "$(DESTDIR)$(PREFIX)/share/man/man0"
+ cp -P -- $(MAN3) "$(DESTDIR)$(PREFIX)/share/man/man3"
uninstall:
-rm -f -- "$(DESTDIR)$(PREFIX)/lib/libsimple.a"
-rm -f -- "$(DESTDIR)$(PREFIX)/include/libsimple.h"
-rm -f -- "$(DESTDIR)$(PREFIX)/include/libsimple-arg.h"
-rm -rf -- "$(DESTDIR)$(PREFIX)/include/libsimple"
+ -cd -- "$(DESTDIR)$(PREFIX)/share/man" && rm -f -- $(MAN0) $(MAN3)
clean:
-rm -rf -- *.o *.su *.a *.so *.so.* *.gch *.gcda *.gcno *.gcov *.lo *.test