From f4dc8b28af97a15ec21a74ebfc02e0d1addecd6f Mon Sep 17 00:00:00 2001
From: Nico Schottelius <nico@kr.ethz.ch>
Date: Mon, 21 Mar 2011 14:00:00 +0100
Subject: [PATCH] fix webbpage copy

Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
---
 Makefile | 12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)

diff --git a/Makefile b/Makefile
index 853feea1..45407702 100644
--- a/Makefile
+++ b/Makefile
@@ -9,8 +9,10 @@ A2XM=a2x -f manpage --no-xmllint
 A2XH=asciidoc -b xhtml11
 
 # Developer only
-WEBPAGEBASE=$$HOME/niconetz/software/cdist
-WEBPAGE=$(WEBPAGEBASE).mdwn
+WEBDIR=$$HOME/niconetz
+WEBBASE=software/cdist
+WEBPAGE=$(WEBBASE).mdwn
+
 
 # Documentation
 MANDIR=doc/man
@@ -113,9 +115,9 @@ test:
 
 #web: manmove
 web:
-	cp README $(WEBPAGE)
-	cp -r doc/html/* $(WEBPAGEBASE)/man
-	cd $(WEBDIR) && git commit -m "cdist update" $(WEBPAGEBASE)
+	cp README $(WEBDIR)/$(WEBPAGE)
+	cp -r doc/html/* $(WEBDIR)/$(WEBBASE)/man
+	cd $(WEBDIR) && git commit -m "cdist update" $(WEBBASE) $(WEBPAGE)
 	cd $(WEBDIR) && make pub
 
 pub: