summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorAki <please@ignore.pl>2023-04-15 16:58:12 +0200
committerAki <please@ignore.pl>2023-04-15 16:58:12 +0200
commit1d83746618b4f5f396c122a23f4d64ffe56f4110 (patch)
treedbe4456812293b4dac35835fd984f52bf87785ed /Makefile
downloadmirror-1d83746618b4f5f396c122a23f4d64ffe56f4110.zip
mirror-1d83746618b4f5f396c122a23f4d64ffe56f4110.tar.gz
mirror-1d83746618b4f5f396c122a23f4d64ffe56f4110.tar.bz2
Implemented script that copies git repositories in bulk
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