aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
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