summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorJouke Witteveen <j.witteveen@gmail.com>2012-03-04 00:34:18 +0100
committerJouke Witteveen <j.witteveen@gmail.com>2012-03-04 00:34:18 +0100
commit6b4c974d5a1a8d12831a6b0de72104368851b5a7 (patch)
treec9f06ac8f70fbdc50bfa9215d9a2d0b93cc3dc57 /Makefile
parent4ed88705b8ea1dae9adc109b71ef35624a9faccd (diff)
downloadnetctl-6b4c974d5a1a8d12831a6b0de72104368851b5a7.tar.gz
netctl-6b4c974d5a1a8d12831a6b0de72104368851b5a7.tar.xz
Overhaul of documentation
- Documentation now uses asciidoc instead of pandoc. - Documentation is updated. - More documentation is installed. - The Makefile has been revised. - Autocompletion files must now be installed through the PKGBUILD. - contrib/11netcfg has been deleted. It is unmaintained and duplicated in pm-utils. This closes FS#25587. - contrib/common.hook has been deleted. It demonstrated a feature that the target audience is already familiar with and didn't work anyway. This closes FS#27496. Developers are free to write unwieldy scripts in the {PRE,POST}_{UP,DOWN} variables.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile69
1 files changed, 31 insertions, 38 deletions
diff --git a/Makefile b/Makefile
index e736d94..38c58e4 100644
--- a/Makefile
+++ b/Makefile
@@ -1,24 +1,17 @@
-DESTDIR=
-VERSION=2.7
-VPATH = doc
+export VERSION = 2.7
-.PHONY: install docs
+.PHONY: install install-wireless install-docs docs tarball upload clean
-install:
+install: install-docs
# Configuration files
install -d $(DESTDIR)/etc/network.d/{examples,interfaces}
install -D -m644 config/netcfg $(DESTDIR)/etc/conf.d/netcfg
install -m644 config/iftab $(DESTDIR)/etc/iftab
install -m644 docs/examples/* $(DESTDIR)/etc/network.d/examples/
- # Documentation
- install -d $(DESTDIR)/usr/share/man/man5
- install -m644 docs/*.5 $(DESTDIR)/usr/share/man/man5
- install -d $(DESTDIR)/usr/share/man/man8
- install -m644 docs/*.8 $(DESTDIR)/usr/share/man/man8
# Libs
install -d $(DESTDIR)/usr/lib/network/{connections,hooks}
- install -m644 src/{network,rfkill,8021x,globals} $(DESTDIR)/usr/lib/network
- install -m755 src/connections/* $(DESTDIR)/usr/lib/network/connections
+ install -m644 src/{network,rfkill,8021x,globals} $(DESTDIR)/usr/lib/network/
+ install -m755 src/connections/* $(DESTDIR)/usr/lib/network/connections/
ln -s wireless $(DESTDIR)/usr/lib/network/connections/wireless-dbus
ln -s ethernet $(DESTDIR)/usr/lib/network/connections/ethernet-iproute
# Hooks
@@ -32,56 +25,56 @@ install:
scripts/netcfg-wpa_actiond \
scripts/netcfg-wpa_actiond-action \
scripts/wifi-menu \
- $(DESTDIR)/usr/bin
+ $(DESTDIR)/usr/bin/
install -Dm755 scripts/ifplugd.action $(DESTDIR)/etc/ifplugd/netcfg.action
# Daemons
install -d $(DESTDIR)/etc/rc.d
install -m755 \
rc.d/net-profiles \
rc.d/net-rename \
- rc.d/net-auto-wireless \
rc.d/net-auto-wired \
- $(DESTDIR)/etc/rc.d
+ rc.d/net-auto-wireless \
+ $(DESTDIR)/etc/rc.d/
install -d $(DESTDIR)/lib/systemd/system
install -m644 \
systemd/net-auto-wireless.service \
systemd/net-auto-wired.service \
- $(DESTDIR)/lib/systemd/system
- # 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
+ $(DESTDIR)/lib/systemd/system/
install-wireless:
install -d $(DESTDIR)/usr/lib/network/connections $(DESTDIR)/usr/bin \
$(DESTDIR)/etc/rc.d
- install -m755 src-wireless/wireless-dbus $(DESTDIR)/usr/lib/network/connections
- install -m755 src-wireless/netcfg-auto-wireless $(DESTDIR)/usr/bin
- install -m755 src-wireless/net-auto $(DESTDIR)/etc/rc.d
+ install -m755 src-wireless/wireless-dbus $(DESTDIR)/usr/lib/network/connections/
+ install -m755 src-wireless/netcfg-auto-wireless $(DESTDIR)/usr/bin/
+ install -m755 src-wireless/net-auto $(DESTDIR)/etc/rc.d/
install-docs: docs
+ install -d $(DESTDIR)/usr/share/man/man5
+ install -m644 docs/*.5 $(DESTDIR)/usr/share/man/man5/
+ install -d $(DESTDIR)/usr/share/man/man8
+ install -m644 docs/*.8 $(DESTDIR)/usr/share/man/man8/
install -d $(DESTDIR)/usr/share/doc/netcfg/contrib
- install -m644 docs/*html $(DESTDIR)/usr/share/doc/netcfg/
- install -m644 contrib/* $(DESTDIR)/usr/share/doc/netcfg/contrib/
-
+ install -m644 docs/*.html $(DESTDIR)/usr/share/doc/netcfg/
+ install -m644 contrib/{logging.hook,pm-utils.handler} $(DESTDIR)/usr/share/doc/netcfg/contrib/
+
docs:
- cd docs && ./make.sh
+ $(MAKE) -C $@
-tarball: docs
- sed -i "s/NETCFG_VER=.*/NETCFG_VER=$(VERSION)/g" scripts/netcfg
- rm -rf netcfg-$(VERSION)
+tarball: docs
+ sed -i "s/NETCFG_VER=.*/NETCFG_VER=$(VERSION)/" scripts/netcfg
+ -rm -rf netcfg-$(VERSION)
mkdir -p netcfg-$(VERSION)
cp -r docs config rc.d src scripts src-wireless systemd contrib Makefile LICENSE README netcfg-$(VERSION)
tar -zcvf netcfg-$(VERSION).tar.gz netcfg-$(VERSION)
rm -rf netcfg-$(VERSION)
-
upload:
- md5sum netcfg-$(VERSION)*gz > MD5SUMS.$(VERSION)
- scp netcfg-$(VERSION)*gz MD5SUMS.$(VERSION) archlinux.org:/srv/ftp/other/netcfg/
+ md5sum netcfg-$(VERSION)*.gz > MD5SUMS.$(VERSION)
+ scp netcfg-$(VERSION)*.gz MD5SUMS.$(VERSION) archlinux.org:/srv/ftp/other/netcfg/
+
+clean:
+ $(MAKE) -C docs clean
+ -@rm -vrf netcfg-$(VERSION) 2>/dev/null
+ -@rm -vrf pkg 2>/dev/null
+ -@rm -vf *.gz MD5SUMS.* 2>/dev/null
-clean:
- rm *gz
- rm -rf netcfg-*$(VERSION)
- rm -rf pkg
- rm MD5SUMS*
- rm docs/*html