From 5e7df6ce79c6d7217d583d45b858f958f7a2e600 Mon Sep 17 00:00:00 2001 From: Jouke Witteveen Date: Sun, 4 Mar 2012 12:19:03 +0100 Subject: Build documentation at buildtime This justifies the asciidoc make dependency. Previously, pre-built documentation was supplied with the netcfg sources. Now only documentation source and the Makefile is provided. --- Makefile | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 38c58e4..1a11432 100644 --- a/Makefile +++ b/Makefile @@ -60,17 +60,18 @@ install-docs: docs docs: $(MAKE) -C $@ -tarball: docs - sed -i "s/NETCFG_VER=.*/NETCFG_VER=$(VERSION)/" scripts/netcfg +tarball: netcfg-$(VERSION).tar.gz +netcfg-$(VERSION).tar.gz: -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) + sed -i "s/NETCFG_VER=.*/NETCFG_VER=$(VERSION)/" netcfg-$(VERSION)/scripts/netcfg 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/ +upload: netcfg-$(VERSION).tar.gz + md5sum netcfg-$(VERSION).tar.gz > MD5SUMS.$(VERSION) + scp netcfg-$(VERSION).tar.gz MD5SUMS.$(VERSION) archlinux.org:/srv/ftp/other/netcfg/ clean: $(MAKE) -C docs clean -- cgit v1.2.3-24-g4f1b