aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2019-04-13 21:16:07 +0200
committerMattias Andrée <maandree@kth.se>2019-04-13 21:16:07 +0200
commit5d887f76881df723864afae7278e7ac2531e96c4 (patch)
tree80a735f209a6f681de6dbbe7704a360cdb2cea61 /Makefile
parentInstall and uninstall man pages (diff)
downloadliberror-5d887f76881df723864afae7278e7ac2531e96c4.tar.gz
liberror-5d887f76881df723864afae7278e7ac2531e96c4.tar.bz2
liberror-5d887f76881df723864afae7278e7ac2531e96c4.tar.xz
Add liberror.7
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r--Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 4d9f242..091428c 100644
--- a/Makefile
+++ b/Makefile
@@ -40,6 +40,9 @@ MAN3 =\
liberror_set_error.3\
liberror_set_error_errno.3
+MAN7 =\
+ liberror.7
+
LOBJ = $(OBJ:.o=.lo)
@@ -66,6 +69,7 @@ install: liberror.a liberror.$(LIBEXT)
mkdir -p -- "$(DESTDIR)$(PREFIX)/include"
mkdir -p -- "$(DESTDIR)$(PREFIX)/share/licenses/liberror"
mkdir -p -- "$(DESTDIR)$(MANPREFIX)/man3"
+ mkdir -p -- "$(DESTDIR)$(MANPREFIX)/man7"
cp -- liberror.a "$(DESTDIR)$(PREFIX)/lib"
cp -- liberror.$(LIBEXT) "$(DESTDIR)$(PREFIX)/lib/liberror.$(LIBMINOREXT)"
ln -sf -- liberror.$(LIBMINOREXT) "$(DESTDIR)$(PREFIX)/lib/liberror.$(LIBMAJOREXT)"
@@ -73,12 +77,14 @@ install: liberror.a liberror.$(LIBEXT)
cp -- liberror.h "$(DESTDIR)$(PREFIX)/include"
cp -- LICENSE "$(DESTDIR)$(PREFIX)/share/licenses/liberror"
cp -- $(MAN3) "$(DESTDIR)$(MANPREFIX)/man3"
+ cp -- $(MAN7) "$(DESTDIR)$(MANPREFIX)/man7"
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)
+ -cd -- "$(DESTDIR)$(MANPREFIX)/man7" && rm -f -- $(MAN7)
clean:
-rm -f -- *.o *.lo *.a *.so *.so.* *.su *.test