diff --git a/libc3/Makefile b/libc3/Makefile
index dd3087a..9a4ef86 100644
--- a/libc3/Makefile
+++ b/libc3/Makefile
@@ -63,8 +63,8 @@ include gen.mk
CLEANFILES += ${GENERATED_FILES}
install:
- ${INSTALL} -o ${OWNER} -g ${GROUP} -m 0755 -d ${prefix}/include/c3
- ${LIBTOOL} --tag=CC --mode=install ${INSTALL} -o ${OWNER} -g ${GROUP} -m 0644 ${HEADERS} ${prefix}/include/c3
+ ${INSTALL} -o ${OWNER} -g ${GROUP} -m 0755 -d ${prefix}/include/libc3
+ ${LIBTOOL} --tag=CC --mode=install ${INSTALL} -o ${OWNER} -g ${GROUP} -m 0644 ${HEADERS} ${prefix}/include/libc3
${INSTALL} -o ${OWNER} -g ${GROUP} -m 0755 -d ${prefix}/lib
${LIBTOOL} --tag=CC --mode=install ${INSTALL} -o ${OWNER} -g ${GROUP} -m 0644 ${LIB} ${prefix}/lib
${LIBTOOL} --finish ${prefix}/lib
diff --git a/libc3/window/Makefile b/libc3/window/Makefile
index 2318fdf..d70f5f6 100644
--- a/libc3/window/Makefile
+++ b/libc3/window/Makefile
@@ -51,6 +51,11 @@ gdb_demo: debug
if ${HAVE_CAIRO}; then ${MAKE} -C cairo gdb_demo; fi
install:
+ ${INSTALL} -o ${OWNER} -g ${GROUP} -m 0755 -d ${prefix}/include/libc3/
+ ${LIBTOOL} --tag=CC --mode=install ${INSTALL} -o ${OWNER} -g ${GROUP} -m 0644 ${HEADERS} ${prefix}/include/libc3
+ ${INSTALL} -o ${OWNER} -g ${GROUP} -m 0755 -d ${prefix}/lib
+ ${LIBTOOL} --tag=CC --mode=install ${INSTALL} -o ${OWNER} -g ${GROUP} -m 0644 ${LIB} ${prefix}/lib
+ ${LIBTOOL} --finish ${prefix}/lib
if ${HAVE_CAIRO}; then ${MAKE} -C cairo install; fi
lldb_demo: debug
diff --git a/libc3/window/cairo/Makefile b/libc3/window/cairo/Makefile
index f63d736..8dc542f 100644
--- a/libc3/window/cairo/Makefile
+++ b/libc3/window/cairo/Makefile
@@ -58,6 +58,11 @@ gdb_demo: debug
if ${HAVE_COCOA}; then ${MAKE} -C quartz gdb_demo; else if ${HAVE_XCB}; then ${MAKE} -C xcb gdb_demo; fi; fi
install:
+ ${INSTALL} -o ${OWNER} -g ${GROUP} -m 0755 -d ${prefix}/include/libc3/
+ ${LIBTOOL} --tag=CC --mode=install ${INSTALL} -o ${OWNER} -g ${GROUP} -m 0644 ${HEADERS} ${prefix}/include/libc3
+ ${INSTALL} -o ${OWNER} -g ${GROUP} -m 0755 -d ${prefix}/lib
+ ${LIBTOOL} --tag=CC --mode=install ${INSTALL} -o ${OWNER} -g ${GROUP} -m 0644 ${LIB} ${prefix}/lib
+ ${LIBTOOL} --finish ${prefix}/lib
if ${HAVE_COCOA}; then ${MAKE} -C quartz install; fi
if ${HAVE_XCB}; then ${MAKE} -C xcb install; fi
diff --git a/libc3/window/cairo/xcb/Makefile b/libc3/window/cairo/xcb/Makefile
index f7adfa9..a4bac17 100644
--- a/libc3/window/cairo/xcb/Makefile
+++ b/libc3/window/cairo/xcb/Makefile
@@ -54,6 +54,14 @@ distclean:
gdb_demo: debug
${MAKE} -C demo gdb_demo
+install:
+ ${INSTALL} -o ${OWNER} -g ${GROUP} -m 0755 -d ${prefix}/include/libc3/
+ ${LIBTOOL} --tag=CC --mode=install ${INSTALL} -o ${OWNER} -g ${GROUP} -m 0644 ${HEADERS} ${prefix}/include/libc3
+ ${INSTALL} -o ${OWNER} -g ${GROUP} -m 0755 -d ${prefix}/lib
+ ${LIBTOOL} --tag=CC --mode=install ${INSTALL} -o ${OWNER} -g ${GROUP} -m 0644 ${LIB} ${prefix}/lib
+ ${LIBTOOL} --finish ${prefix}/lib
+ ${MAKE} -C demo install
+
test: build
${MAKE} -C demo test