summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorJames Rayner <james@archlinux.org>2009-11-18 03:45:35 +0100
committerJames Rayner <james@archlinux.org>2009-11-18 03:45:35 +0100
commit3cbb28408f4537fbc7beaa7148458f0db3f02baf (patch)
treefb3a3ee659f0bb6c828f162180a1a36f905b570d /Makefile
parentedf633af40487375d5c663ac217d42924214e130 (diff)
downloadnetctl-3cbb28408f4537fbc7beaa7148458f0db3f02baf.tar.gz
netctl-3cbb28408f4537fbc7beaa7148458f0db3f02baf.tar.xz
FS#13418,FS#12505 - add zsh/bash completion
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile18
1 files changed, 10 insertions, 8 deletions
diff --git a/Makefile b/Makefile
index 093cbe9..b69dd95 100644
--- a/Makefile
+++ b/Makefile
@@ -3,12 +3,11 @@ VERSION=2.5.0rc1
VPATH = doc
install:
- install -d $(DESTDIR)/usr/lib/network/{connections,hooks} $(DESTDIR)/etc/network.d/examples \
- $(DESTDIR)/etc/network.d/hooks \
+ install -d $(DESTDIR)/usr/lib/network/{connections,hooks} \
+ $(DESTDIR)/etc/network.d/{examples,hooks,interfaces} \
+ $(DESTDIR)/etc/rc.d} \
$(DESTDIR)/var/run/network/{interfaces,profiles} \
- $(DESTDIR)/usr/bin/ $(DESTDIR)/etc/rc.d/ \
$(DESTDIR)/usr/share/man/{man5,man8} \
- $(DESTDIR)/etc/ifplugd
# Documentation
install -m644 examples/* $(DESTDIR)/etc/network.d/examples/
@@ -21,12 +20,15 @@ install:
# Hooks
install -m755 src/hooks/* ${DESTDIR}/usr/lib/network/hooks/
# Scripts
- install -m755 src/netcfg $(DESTDIR)/usr/bin/netcfg2
- install -m755 src/netcfg-menu $(DESTDIR)/usr/bin/netcfg-menu
+ install -Dm755 src/netcfg $(DESTDIR)/usr/bin/netcfg2
+ install -Dm755 src/netcfg-menu $(DESTDIR)/usr/bin/netcfg-menu
install -m755 wpa_actiond/netcfg-wpa_actiond{,-action} ifplugd/net-auto-wired $(DESTDIR)/usr/bin
- install -m755 ifplugd/netcfg.action $(DESTDIR)/etc/ifplugd/
+ install -Dm755 ifplugd/netcfg.action $(DESTDIR)/etc/ifplugd/netcfg.action
# Daemons
- install -m755 src/net-profiles src/net-rename wpa_actiond/net-auto-wireless ifplugd/net-auto-wired $(DESTDIR)/etc/rc.d
+ install -m755 src/net-{profiles,rename} wpa_actiond/net-auto-wireless ifplugd/net-auto-wired $(DESTDIR)/etc/rc.d
+ # Shell Completion
+ install -Dm644 contrib/bash-completion $(DESTDIR)/etc/bash_completion.d/netcfg
+ install -Dm644 contrib/zsh-completion $(DESTDIR)/usr/share/zsh/site-functions/_netcfg
install-wireless:
install -d $(DESTDIR)/usr/lib/network/connections $(DESTDIR)/usr/bin \