~apt-fast/apt-fast/apt-fast-ro

73.1.1 by Peter Dave Hello
add Makefile to help install
1
.PHONY: install uninstall reinstall
2
3
install: apt-fast completions/bash/apt-fast
4
	apt-get install --force-yes -y -qq aria2
97 by Christopher Chavez
install to /usr/local hierarchy (Closes #108) (#124)
5
	cp apt-fast /usr/local/sbin/
73.1.1 by Peter Dave Hello
add Makefile to help install
6
	cp apt-fast.conf /etc/
7
	mkdir -p /etc/bash_completion.d/
8
	mkdir -p /usr/share/zsh/functions/Completion/Debian/
9
	cp completions/bash/apt-fast /etc/bash_completion.d/
10
	cp completions/zsh/_apt-fast /usr/share/zsh/functions/Completion/Debian/
11
	chown root:root /etc/bash_completion.d/apt-fast
12
	chown root:root /usr/share/zsh/functions/Completion/Debian/_apt-fast
97 by Christopher Chavez
install to /usr/local hierarchy (Closes #108) (#124)
13
	mkdir -p /usr/local/share/man/man8/
14
	mkdir -p /usr/local/share/man/man5/
15
	cp man/apt-fast.8 /usr/local/share/man/man8/
16
	cp man/apt-fast.conf.5 /usr/local/share/man/man5/
17
	gzip -f9 /usr/local/share/man/man8/apt-fast.8
18
	gzip -f9 /usr/local/share/man/man5/apt-fast.conf.5
19
	chmod +x /usr/local/sbin/apt-fast
73.1.1 by Peter Dave Hello
add Makefile to help install
20
97 by Christopher Chavez
install to /usr/local hierarchy (Closes #108) (#124)
21
uninstall: /usr/local/sbin/apt-fast
22
	rm -rf /usr/local/sbin/apt-fast /etc/apt-fast.conf \
23
	/usr/local/share/man/man5/apt-fast.conf.5.gz /usr/local/share/man/man8/apt-fast.8.gz \
73.1.1 by Peter Dave Hello
add Makefile to help install
24
	/usr/share/zsh/functions/Completion/Debian/_apt-fast /etc/bash_completion.d/apt-fast
76.1.1 by Peter Dave Hello
Update Makefile
25
	@echo "Please manually remove deb package - aria2 if you don't need it anymore."
73.1.1 by Peter Dave Hello
add Makefile to help install
26
97 by Christopher Chavez
install to /usr/local hierarchy (Closes #108) (#124)
27
/usr/local/sbin/apt-fast:
73.1.1 by Peter Dave Hello
add Makefile to help install
28
	@echo "Not installed" 1>&2
29
	@exit 1
30
31
reinstall: uninstall install