summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2010-09-19 00:33:30 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2010-09-19 00:33:30 +0200
commite72e572396ff3f3b1bbd56183acf9e33c63a381f (patch)
treef3194d200ed924924083a3a67b67581af9c58cfb
parent6ae7af3fc6742d96ec7b56485bb68108987ca62a (diff)
Add clean and install make targets
* Makefile (INSTALL): New variable. clean: New target. install: New target.
-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/