From f33af8ecd7dae0b663b0eb99474d16403faaf4e1 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Mon, 18 Jul 2022 23:18:48 +0200 Subject: Add man pages MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- Makefile | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 02b0018..6dabda0 100644 --- a/Makefile +++ b/Makefile @@ -22,6 +22,19 @@ OBJ =\ HDR =\ libtracebitmap.h +MAN0 =\ + libtracebitmap.h.0 + +MAN3 =\ + libtracebitmap_trace.3\ + LIBTRACEBITMAP_INK_OFF.3\ + LIBTRACEBITMAP_INK_ON.3\ + libtracebitmap_bitmap.3\ + struct_libtracebitmap_bitmap.3 + +MAN7 =\ + libtracebitmap.7 + LOBJ = $(OBJ:.o=.lo) @@ -48,12 +61,18 @@ libtracebitmap.$(LIBEXT): $(LOBJ) install: libtracebitmap.a libtracebitmap.$(LIBEXT) mkdir -p -- "$(DESTDIR)$(PREFIX)/lib" mkdir -p -- "$(DESTDIR)$(PREFIX)/include" + mkdir -p -- "$(DESTDIR)$(MANPREFIX)/man0" + mkdir -p -- "$(DESTDIR)$(MANPREFIX)/man3" + mkdir -p -- "$(DESTDIR)$(MANPREFIX)/man7" cp -- libtracebitmap.a "$(DESTDIR)$(PREFIX)/lib/" cp -- libtracebitmap.$(LIBEXT) "$(DESTDIR)$(PREFIX)/lib/libtracebitmap.$(LIBMINOREXT)" $(FIX_INSTALL_NAME) "$(DESTDIR)$(PREFIX)/lib/libtracebitmap.$(LIBMINOREXT)" ln -sf -- libtracebitmap.$(LIBMINOREXT) "$(DESTDIR)$(PREFIX)/lib/libtracebitmap.$(LIBMAJOREXT)" ln -sf -- libtracebitmap.$(LIBMAJOREXT) "$(DESTDIR)$(PREFIX)/lib/libtracebitmap.$(LIBEXT)" cp -- libtracebitmap.h "$(DESTDIR)$(PREFIX)/include/" + cp -P -- $(MAN0) "$(DESTDIR)$(MANPREFIX)/man0" + cp -P -- $(MAN3) "$(DESTDIR)$(MANPREFIX)/man3" + cp -P -- $(MAN7) "$(DESTDIR)$(MANPREFIX)/man7" uninstall: -rm -f -- "$(DESTDIR)$(PREFIX)/lib/libtracebitmap.a" @@ -61,6 +80,9 @@ uninstall: -rm -f -- "$(DESTDIR)$(PREFIX)/lib/libtracebitmap.$(LIBMINOREXT)" -rm -f -- "$(DESTDIR)$(PREFIX)/lib/libtracebitmap.$(LIBEXT)" -rm -f -- "$(DESTDIR)$(PREFIX)/include/libtracebitmap.h" + -cd -- "$(DESTDIR)$(MANPREFIX)/man0" && rm -f -- $(MAN0) + -cd -- "$(DESTDIR)$(MANPREFIX)/man3" && rm -f -- $(MAN3) + -cd -- "$(DESTDIR)$(MANPREFIX)/man7" && rm -f -- $(MAN7) clean: -rm -f -- *.o *.a *.lo *.su *.so *.so.* *.dll *.dylib -- cgit v1.2.3-70-g09d2