summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorJames Rayner <james@archlinux.org>2009-05-12 15:14:40 +0200
committerJames Rayner <james@archlinux.org>2009-05-12 15:14:40 +0200
commitd60f370571af5413b6512b1dd40c7ace0e98ef54 (patch)
tree936ab49e9e9d637ed02438dbd0e336831a8f28ea /Makefile
parentdd485367068c8451787045e14bc7ce8a1257135d (diff)
downloadnetctl-d60f370571af5413b6512b1dd40c7ace0e98ef54.tar.gz
netctl-d60f370571af5413b6512b1dd40c7ace0e98ef54.tar.xz
Add documentation for both types of ethernet and wireless connections
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile14
1 files changed, 13 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 72db45f..dc3427c 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,6 @@
DESTDIR=
VERSION=2.2.0_B1
+VPATH = doc
install:
install -d $(DESTDIR)/usr/lib/network/connections $(DESTDIR)/etc/network.d/examples \
@@ -26,6 +27,15 @@ install-wireless:
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/doc/netcfg
+ install -m644 doc/*html $(DESTDIR)/usr/share/doc/netcfg/
+
+docs: doc/*
+ for doc in $(?); do \
+ pandoc $$doc -o $$doc.html;\
+ done
+
tarball:
sed -i "s/NETCFG_VER=.*/NETCFG_VER=$(VERSION)/g" src/netcfg
mkdir -p netcfg-$(VERSION)
@@ -36,10 +46,12 @@ tarball:
upload:
md5sum netcfg-$(VERSION)*gz > MD5SUMS.$(VERSION)
- #scp netcfg-$(VERSION)*gz MD5SUMS.$(VERSION) archlinux.org:/home/ftp/other/netcfg/
+ scp netcfg-$(VERSION)*gz MD5SUMS.$(VERSION) archlinux.org:/home/ftp/other/netcfg/
clean:
+ rm doc/*html
rm *gz
rm -rf netcfg-*$(VERSION)
rm -rf pkg
rm MD5SUMS*
+