From 45cc16376f79ceeb642da4a5ab5b4568b3231871 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sun, 13 Oct 2024 23:14:32 +0200 Subject: Add section 3 man pages MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- Makefile | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) (limited to 'Makefile') diff --git a/Makefile b/Makefile index cabef3f..ccd5c25 100644 --- a/Makefile +++ b/Makefile @@ -15,6 +15,9 @@ LIB_MINOR = 0 LIB_VERSION = $(LIB_MAJOR).$(LIB_MINOR) LIB_NAME = parsepcf +# Version 2.0 is ABI-backwards compatible with +# version 1.0, but not API-backwards compatible + OBJ =\ libparsepcf_destroy_preparsed_font.o\ @@ -45,6 +48,47 @@ HDR =\ libparsepcf.h\ common.h +MAN3 =\ + struct_libparsepcf_table.3\ + LIBPARSEPCF_PROPERTIES.3\ + LIBPARSEPCF_ACCELERATORS.3\ + LIBPARSEPCF_METRICS.3\ + LIBPARSEPCF_BITMAPS.3\ + LIBPARSEPCF_INK_METRICS.3\ + LIBPARSEPCF_BDF_ENCODINGS.3\ + LIBPARSEPCF_SWIDTHS.3\ + LIBPARSEPCF_GLYPH_NAMES.3\ + LIBPARSEPCF_BDF_ACCELERATORS.3\ + libparsepcf_get_table_count.3\ + libparsepcf_get_tables.3\ + struct_libparsepcf_properties.3\ + struct_libparsepcf_property_subtable.3\ + libparsepcf_get_properties.3\ + libparsepcf_get_property_subtable.3\ + struct_libparsepcf_metrics.3\ + libparsepcf_get_metrics_count.3\ + libparsepcf_get_metrics.3\ + struct_libparsepcf_glyph_names.3\ + libparsepcf_get_glyph_names.3\ + libparsepcf_get_glyph_name_subtable.3\ + struct_libparsepcf_bitmaps.3\ + int libparsepcf_get_bitmaps.3\ + int libparsepcf_get_bitmap_offsets.3\ + struct_libparsepcf_encoding.3\ + LIBPARSEPCF_NOT_ENCODED.3\ + libparsepcf_get_encoding.3\ + libparsepcf_get_glyph_indices.3\ + struct_libparsepcf_accelerators.3\ + libparsepcf_get_accelerators.3\ + libparsepcf_get_swidth_count.3\ + libparsepcf_get_swidths.3\ + struct_libparsepcf_font.3\ + libparsepcf_preparse_font.3\ + libparsepcf_destroy_preparsed_font.3 + +MAN0 = libparsepcf.h.0 +MAN7 = libparsepcf.7 + LOBJ = $(OBJ:.o=.lo) SRC = $(OBJ:.o=.c) @@ -73,12 +117,16 @@ libparsepcf.$(LIBEXT): $(LOBJ) install: libparsepcf.a libparsepcf.$(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 -- libparsepcf.a "$(DESTDIR)$(PREFIX)/lib/" cp -- libparsepcf.$(LIBEXT) "$(DESTDIR)$(PREFIX)/lib/libparsepcf.$(LIBMINOREXT)" $(FIX_INSTALL_NAME) "$(DESTDIR)$(PREFIX)/lib/libparsepcf.$(LIBMINOREXT)" ln -sf -- libparsepcf.$(LIBMINOREXT) "$(DESTDIR)$(PREFIX)/lib/libparsepcf.$(LIBMAJOREXT)" ln -sf -- libparsepcf.$(LIBMAJOREXT) "$(DESTDIR)$(PREFIX)/lib/libparsepcf.$(LIBEXT)" cp -- libparsepcf.h "$(DESTDIR)$(PREFIX)/include/" + cp -P -- $(MAN3) "$(DESTDIR)$(MANPREFIX)/man3/" uninstall: -rm -f -- "$(DESTDIR)$(PREFIX)/lib/libparsepcf.a" @@ -86,6 +134,9 @@ uninstall: -rm -f -- "$(DESTDIR)$(PREFIX)/lib/libparsepcf.$(LIBMINOREXT)" -rm -f -- "$(DESTDIR)$(PREFIX)/lib/libparsepcf.$(LIBEXT)" -rm -f -- "$(DESTDIR)$(PREFIX)/include/libparsepcf.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