diff options
author | Aki <please@ignore.pl> | 2023-04-15 16:58:12 +0200 |
---|---|---|
committer | Aki <please@ignore.pl> | 2023-04-15 16:58:12 +0200 |
commit | 1d83746618b4f5f396c122a23f4d64ffe56f4110 (patch) | |
tree | dbe4456812293b4dac35835fd984f52bf87785ed /Makefile | |
download | mirror-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-- | Makefile | 21 |
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 |