aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2019-04-14 14:31:37 +0200
committerMattias Andrée <maandree@kth.se>2019-04-14 14:31:37 +0200
commita13ab1979b3ebc104522def69ccf8020c3e1feb6 (patch)
treebec92c5b42cfefa2034a3fc800c25f1fb86f1e81 /Makefile
parentEnable prefetching backtace (diff)
downloadliberror-backtrace-a13ab1979b3ebc104522def69ccf8020c3e1feb6.tar.gz
liberror-backtrace-a13ab1979b3ebc104522def69ccf8020c3e1feb6.tar.bz2
liberror-backtrace-a13ab1979b3ebc104522def69ccf8020c3e1feb6.tar.xz
Add liberror-backtrace1.0
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 8a673e3..f429d50 100644
--- a/Makefile
+++ b/Makefile
@@ -20,6 +20,9 @@ OBJ =\
print_backtrace.o\
save_backtrace.o
+MAN7 =\
+ liberror-backtrace.7
+
LOBJ = $(OBJ:.o=.lo)
@@ -44,15 +47,18 @@ liberror-backtrace.$(LIBEXT): $(LOBJ)
install: liberror-backtrace.a liberror-backtrace.$(LIBEXT)
mkdir -p -- "$(DESTDIR)$(PREFIX)/lib"
mkdir -p -- "$(DESTDIR)$(PREFIX)/share/licenses/liberror-backtrace"
+ mkdir -p -- "$(DESTDIR)$(MANPREFIX)/man7"
cp -- liberror-backtrace.a "$(DESTDIR)$(PREFIX)/lib"
cp -- liberror-backtrace.$(LIBEXT) "$(DESTDIR)$(PREFIX)/lib/liberror-backtrace.$(LIBMINOREXT)"
ln -sf -- liberror-backtrace.$(LIBMINOREXT) "$(DESTDIR)$(PREFIX)/lib/liberror-backtrace.$(LIBMAJOREXT)"
ln -sf -- liberror-backtrace.$(LIBMINOREXT) "$(DESTDIR)$(PREFIX)/lib/liberror-backtrace.$(LIBEXT)"
cp -- LICENSE "$(DESTDIR)$(PREFIX)/share/licenses/liberror-backtrace"
+ cp -- $(MAN7) "$(DESTDIR)$(MANPREFIX)/man7"
uninstall:
-rm -f -- "$(DESTDIR)$(PREFIX)/lib/liberror-backtrace."*
-rm -rf -- "$(DESTDIR)$(PREFIX)/share/licenses/liberror-backtrace"
+ -cd -- "$(DESTDIR)$(MANPREFIX)/man7" && rm -f -- $(MAN7)
clean:
-rm -f -- *.o *.lo *.a *.so *.so.* *.su *.test