summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 2315fc36d..a977892a3 100644
--- a/Makefile
+++ b/Makefile
@@ -31,6 +31,8 @@ LCLHDRS = gopherfs.h
OBJS = $(SRCS:.c=.o)
HURDLIBS = -lnetfs -lfshelp -liohelp -lports
+INSTALL = install
+
all: $(target)
$(target): $(OBJS)
@@ -39,3 +41,9 @@ $(target): $(OBJS)
%.o: %.c $(LCLHDRS)
$(CC) $(CFLAGS) $(INCLUDES) -o $@ -c $<
+clean:
+ -rm -f *.o $(target)
+
+install:
+ $(INSTALL) -d $(DESTDIR)/hurd
+ $(INSTALL) $(target) $(DESTDIR)/hurd/