update makefile for use of git-push

Signed-off-by: Nico Schottelius <nico@ikn.schottelius.org>
This commit is contained in:
Nico Schottelius 2010-03-12 18:24:24 +01:00
parent 693393f2eb
commit 5dc0916324

View file

@ -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