aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile18
1 files changed, 18 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index f96c012..96cd2da 100644
--- a/Makefile
+++ b/Makefile
@@ -38,6 +38,18 @@ HDR =\
LOBJ = $(OBJ:.o=.lo)
TESTS = $(OBJ:.o=.test)
+MAN3 =\
+ rtgrpblib_create_raster.3\
+ rtgrpblib_reset_raster.3\
+ rtgrpblib_set_draftness.3\
+ rtgrpblib_draw_elliptical_arc.3\
+ rtgrpblib_draw_linear_bezier.3\
+ rtgrpblib_draw_quadratic_bezier.3\
+ rtgrpblib_draw_cubic_bezier.3\
+ rtgrpblib_fill_shapes.3
+
+MAN7 = lib$(LIB_NAME).7
+
all: lib$(LIB_NAME).a lib$(LIB_NAME).$(LIBEXT) $(TESTS)
$(OBJ): $(HDR)
@@ -73,6 +85,10 @@ install: lib$(LIB_NAME).a lib$(LIB_NAME).$(LIBEXT)
ln -sf -- lib$(LIB_NAME).$(LIBMINOREXT) "$(DESTDIR)$(PREFIX)/lib/lib$(LIB_NAME).$(LIBMAJOREXT)"
ln -sf -- lib$(LIB_NAME).$(LIBMAJOREXT) "$(DESTDIR)$(PREFIX)/lib/lib$(LIB_NAME).$(LIBEXT)"
cp -- lib$(LIB_NAME).h "$(DESTDIR)$(PREFIX)/include/"
+ mkdir -- "$(DESTDIR)$(MANPREFIX)/man3/"
+ mkdir -- "$(DESTDIR)$(MANPREFIX)/man7/"
+ cp -- $(MAN2) "$(DESTDIR)$(MANPREFIX)/man3/"
+ cp -- $(MAN7) "$(DESTDIR)$(MANPREFIX)/man7/"
uninstall:
-rm -f -- "$(DESTDIR)$(PREFIX)/lib/lib$(LIB_NAME).a"
@@ -80,6 +96,8 @@ uninstall:
-rm -f -- "$(DESTDIR)$(PREFIX)/lib/lib$(LIB_NAME).$(LIBMINOREXT)"
-rm -f -- "$(DESTDIR)$(PREFIX)/lib/lib$(LIB_NAME).$(LIBEXT)"
-rm -f -- "$(DESTDIR)$(PREFIX)/include/lib$(LIB_NAME).h"
+ -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 *.test