diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2010-09-19 00:33:30 +0200 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2010-09-19 00:33:30 +0200 |
commit | e72e572396ff3f3b1bbd56183acf9e33c63a381f (patch) | |
tree | f3194d200ed924924083a3a67b67581af9c58cfb | |
parent | 6ae7af3fc6742d96ec7b56485bb68108987ca62a (diff) |
Add clean and install make targets
* Makefile (INSTALL): New variable.
clean: New target.
install: New target.
-rw-r--r-- | Makefile | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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/ |