diff options
author | Mattias Andrée <maandree@kth.se> | 2019-04-13 20:43:48 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2019-04-13 20:43:48 +0200 |
commit | a989a8f287159c6069aafb4da6d0a4c8ab7d08b6 (patch) | |
tree | 5095a6f4aaa8dc39a78b6452cc4da5d584bac568 /Makefile | |
parent | And man pages for the function, and add print function to user specifiec error details (diff) | |
download | liberror-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 'Makefile')
-rw-r--r-- | Makefile | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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 |