From 5dc0916324038adaa480f20bd5f3b287976320de Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Fri, 12 Mar 2010 18:24:24 +0100 Subject: [PATCH] update makefile for use of git-push Signed-off-by: Nico Schottelius --- Makefile | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/Makefile b/Makefile index 017e0ef5..49b4422e 100644 --- a/Makefile +++ b/Makefile @@ -7,25 +7,30 @@ IKIWIKI=ikiwiki all: $(IKIWIKI) --refresh --setup ikiwiki.setup +lall: + $(IKIWIKI) --refresh --setup ikiwiki.setup --set destdir=../dst --set srcdir=. + all-unfresh: $(IKIWIKI) --setup ikiwiki.setup -view: all +view: $(BROWSER) ${DESTDIR}/index.html clean: all rm -rf ${DESTDIR} -ask: - @echo "Press return to publish..." - @read avariable +public: git push --mirror -public: ask public-f +#public: ask public-f -public-f: all - find ${DESTDIR} -type f -exec chmod 0644 {} \; - find ${DESTDIR} -type d -exec chmod 0755 {} \; - rsync -av --delete ${DESTDIR} ${PUBDIR} +#public-f: all +# find ${DESTDIR} -type f -exec chmod 0644 {} \; +# find ${DESTDIR} -type d -exec chmod 0755 {} \; +# rsync -av --delete ${DESTDIR} ${PUBDIR} +#ask: +# @echo "Press return to publish..." +# @read avariable +# git push --mirror