summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2010-09-18 23:17:45 +0000
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2010-09-18 23:17:45 +0000
commit9333d21abe61d66bd8cb800ec9f8b13a58060fe7 (patch)
tree5ef8d5397044cd64040bd85dc8ca1a7591e00a8b
parent9c9949846e9958520994009b7ed2a98367bc6994 (diff)
Add install make target
* Makefile (INSTALL): New variable. install: New target.
-rw-r--r--Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 13777e341..01d6fdc39 100644
--- a/Makefile
+++ b/Makefile
@@ -19,6 +19,8 @@
CFLAGS = -g -Wall -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64
+INSTALL = install
+
netio: main.o netfs.o node.o lib.o protocol.o
gcc $(CFLAGS) -lnetfs -lfshelp -liohelp -lthreads -lports \
-lihash -lshouldbeinlibc \
@@ -42,4 +44,8 @@ protocol.o: protocol.c netio.h lib.h node.h
clean:
rm -rf *.o netio
-.PHONY: clean
+install:
+ $(INSTALL) -d $(DESTDIR)/hurd
+ $(INSTALL) netio $(DESTDIR)/hurd
+
+.PHONY: clean install