git » libjio » commit ef306c1

Make "make install" create the destination directory, just in case they don't exist.

author Alberto Bertogli
2004-04-05 15:31:21 UTC
committer Alberto Bertogli
2007-07-15 12:31:26 UTC
parent bfca59ece09307af1a35fc1aa55b7f33c45b48ae

Make "make install" create the destination directory, just in case they don't exist.

Make "make install" create the destination directory, just in case they don't
exist.

Makefile +4 -1

diff --git a/Makefile b/Makefile
index 52ef03c..725b987 100644
--- a/Makefile
+++ b/Makefile
@@ -20,11 +20,14 @@ jiofsck: jiofsck.o static
 	$(CC) jiofsck.o libjio.a -lpthread -o jiofsck
 
 install: all
+	install -g root -o root -d $(PREFIX)/lib
 	install -g root -o root -m 0755 libjio.so $(PREFIX)/lib
 	install -g root -o root -m 0644 libjio.a $(PREFIX)/lib
+	install -g root -o root -d $(PREFIX)/include
 	install -g root -o root -m 0644 libjio.h $(PREFIX)/include
+	install -g root -o root -d $(PREFIX)/bin
 	install -g root -o root -m 0775 jiofsck $(PREFIX)/bin
-	install -g root -o root -m 0644 -d $(PREFIX)/man/man3
+	install -g root -o root -d $(PREFIX)/man/man3
 	install -g root -o root -m 0644 doc/libjio.3 $(PREFIX)/man/man3/
 	@echo
 	@echo "Please run ldconfig to update your library cache"