From d60f370571af5413b6512b1dd40c7ace0e98ef54 Mon Sep 17 00:00:00 2001 From: James Rayner Date: Tue, 12 May 2009 23:14:40 +1000 Subject: Add documentation for both types of ethernet and wireless connections --- Makefile | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'Makefile') 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* + -- cgit v1.2.3-24-g4f1b