diff options
author | Mattias Andrée <maandree@kth.se> | 2022-07-17 18:49:27 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2022-07-17 18:49:27 +0200 |
commit | e0e5cfa84da527d0a2cc818bcf5b9be83615e1c2 (patch) | |
tree | 7297f946c832256845735837aa639a1975c6a9a3 /Makefile | |
parent | Fix value of *unrecognised_versionp (diff) | |
download | libparsepsf-e0e5cfa84da527d0a2cc818bcf5b9be83615e1c2.tar.gz libparsepsf-e0e5cfa84da527d0a2cc818bcf5b9be83615e1c2.tar.bz2 libparsepsf-e0e5cfa84da527d0a2cc818bcf5b9be83615e1c2.tar.xz |
Add man pages
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 20 |
1 files changed, 20 insertions, 0 deletions
@@ -20,6 +20,17 @@ OBJ =\ HDR =\ libparsepsf.h +MAN0 =\ + libparsepsf.h.0 + +MAN3 =\ + libparsepsf_destroy_font.3\ + libparsepsf_get_glyph.3\ + libparsepsf_parse_font.3 + +MAN7 =\ + libparsepsf.7 + all: libparsepsf.a libparsepsf.$(LIBEXT) demo $(OBJ): $(HDR) @@ -45,12 +56,18 @@ demo: demo.o libparsepsf.a install: libparsepsf.a 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 -- libparsepsf.a "$(DESTDIR)$(PREFIX)/lib" cp -- libparsepsf.$(LIBEXT) "$(DESTDIR)$(PREFIX)/lib/libparsepsf.$(LIBMINOREXT)" $(FIX_INSTALL_NAME) "$(DESTDIR)$(PREFIX)/lib/libparsepsf.$(LIBMINOREXT)" ln -sf -- "libparsepsf.$(LIBMINOREXT)" "$(DESTDIR)$(PREFIX)/lib/libparsepsf.$(LIBMAJOREXT)" ln -sf -- "libparsepsf.$(LIBMAJOREXT)" "$(DESTDIR)$(PREFIX)/lib/libparsepsf.$(LIBEXT)" cp -- libparsepsf.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/libparsepsf.a" @@ -58,6 +75,9 @@ uninstall: -rm -f -- "$(DESTDIR)$(PREFIX)/lib/libparsepsf.$(LIBMAJOREXT)" -rm -f -- "$(DESTDIR)$(PREFIX)/lib/libparsepsf.$(LIBMINOREXT)" -rm -f -- "$(DESTDIR)$(PREFIX)/include/libparsepsf.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 *.lo *.su *.a *.so *.so.* demo |