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

« back to all changes in this revision

Viewing changes to Makefile

  • Committer: Dominique Lasserre
  • Author(s): Christopher Chavez
  • Date: 2017-10-30 08:31:19 UTC
  • Revision ID: git-v1:0a7c141d83c3f61ccc2f72871db7f323ea4c8770
install to /usr/local hierarchy (Closes #108) (#124)

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
 
3
3
install: apt-fast completions/bash/apt-fast
4
4
        apt-get install --force-yes -y -qq aria2
5
 
        cp apt-fast /usr/bin/
 
5
        cp apt-fast /usr/local/sbin/
6
6
        cp apt-fast.conf /etc/
7
7
        mkdir -p /etc/bash_completion.d/
8
8
        mkdir -p /usr/share/zsh/functions/Completion/Debian/
10
10
        cp completions/zsh/_apt-fast /usr/share/zsh/functions/Completion/Debian/
11
11
        chown root:root /etc/bash_completion.d/apt-fast
12
12
        chown root:root /usr/share/zsh/functions/Completion/Debian/_apt-fast
13
 
        cp man/apt-fast.8 /usr/share/man/man8/
14
 
        cp man/apt-fast.conf.5 /usr/share/man/man5/
15
 
        gzip -f9 /usr/share/man/man8/apt-fast.8
16
 
        gzip -f9 /usr/share/man/man5/apt-fast.conf.5
17
 
        chmod +x /usr/bin/apt-fast
 
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
18
20
 
19
 
uninstall: /usr/bin/apt-fast
20
 
        rm -rf /usr/bin/apt-fast /etc/apt-fast.conf \
21
 
        /usr/share/man/man5/apt-fast.conf.5.gz /usr/share/man/man8/apt-fast.8.gz \
 
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 \
22
24
        /usr/share/zsh/functions/Completion/Debian/_apt-fast /etc/bash_completion.d/apt-fast
23
25
        @echo "Please manually remove deb package - aria2 if you don't need it anymore."
24
26
 
25
 
/usr/bin/apt-fast:
 
27
/usr/local/sbin/apt-fast:
26
28
        @echo "Not installed" 1>&2
27
29
        @exit 1
28
30