aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2019-04-13 20:43:48 +0200
committerMattias Andrée <maandree@kth.se>2019-04-13 20:43:48 +0200
commita989a8f287159c6069aafb4da6d0a4c8ab7d08b6 (patch)
tree5095a6f4aaa8dc39a78b6452cc4da5d584bac568 /Makefile
parentAnd man pages for the function, and add print function to user specifiec error details (diff)
downloadliberror-a989a8f287159c6069aafb4da6d0a4c8ab7d08b6.tar.gz
liberror-a989a8f287159c6069aafb4da6d0a4c8ab7d08b6.tar.bz2
liberror-a989a8f287159c6069aafb4da6d0a4c8ab7d08b6.tar.xz
Install and uninstall man pages
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r--Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index e8bdb7c..4d9f242 100644
--- a/Makefile
+++ b/Makefile
@@ -65,17 +65,20 @@ install: liberror.a liberror.$(LIBEXT)
mkdir -p -- "$(DESTDIR)$(PREFIX)/lib"
mkdir -p -- "$(DESTDIR)$(PREFIX)/include"
mkdir -p -- "$(DESTDIR)$(PREFIX)/share/licenses/liberror"
+ mkdir -p -- "$(DESTDIR)$(MANPREFIX)/man3"
cp -- liberror.a "$(DESTDIR)$(PREFIX)/lib"
cp -- liberror.$(LIBEXT) "$(DESTDIR)$(PREFIX)/lib/liberror.$(LIBMINOREXT)"
ln -sf -- liberror.$(LIBMINOREXT) "$(DESTDIR)$(PREFIX)/lib/liberror.$(LIBMAJOREXT)"
ln -sf -- liberror.$(LIBMINOREXT) "$(DESTDIR)$(PREFIX)/lib/liberror.$(LIBEXT)"
cp -- liberror.h "$(DESTDIR)$(PREFIX)/include"
cp -- LICENSE "$(DESTDIR)$(PREFIX)/share/licenses/liberror"
+ cp -- $(MAN3) "$(DESTDIR)$(MANPREFIX)/man3"
uninstall:
-rm -f -- "$(DESTDIR)$(PREFIX)/lib/liberror."*
-rm -f -- "$(DESTDIR)$(PREFIX)/include/liberror.h"
-rm -rf -- "$(DESTDIR)$(PREFIX)/share/licenses/liberror"
+ -cd -- "$(DESTDIR)$(MANPREFIX)/man3" && rm -f -- $(MAN3)
clean:
-rm -f -- *.o *.lo *.a *.so *.so.* *.su *.test