summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile21
1 files changed, 21 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..295812f
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,21 @@
+PREFIX?=/usr/local
+BINDIR?=$(PREFIX)/bin
+DATADIR?=$(PREFIX)/share
+MANDIR?=$(DATADIR)/man/man1
+
+all: mirror
+
+clean:
+ rm -f mirror
+
+install:
+ mkdir -p $(DESTDIR)$(BINDIR)
+ mkdir -p $(DESTDIR)$(MANDIR)
+ cp -f mirror $(DESTDIR)$(BINDIR)/mirror
+ cp -f mirror.1 $(DESTDIR)$(MANDIR)/mirror.1
+
+uninstall:
+ rm -f $(DESTDIR)$(BINDIR)/mirror
+ rm -f $(DESTDIR)$(MANDIR)/mirror.1
+
+.PHONY: all clean install uninstall