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: all:
$(IKIWIKI) --refresh --setup ikiwiki.setup $(IKIWIKI) --refresh --setup ikiwiki.setup
lall:
$(IKIWIKI) --refresh --setup ikiwiki.setup --set destdir=../dst --set srcdir=.
all-unfresh: all-unfresh:
$(IKIWIKI) --setup ikiwiki.setup $(IKIWIKI) --setup ikiwiki.setup
view: all view:
$(BROWSER) ${DESTDIR}/index.html $(BROWSER) ${DESTDIR}/index.html
clean: all clean: all
rm -rf ${DESTDIR} rm -rf ${DESTDIR}
ask: public:
@echo "Press return to publish..."
@read avariable
git push --mirror git push --mirror
public: ask public-f #public: ask public-f
public-f: all #public-f: all
find ${DESTDIR} -type f -exec chmod 0644 {} \; # find ${DESTDIR} -type f -exec chmod 0644 {} \;
find ${DESTDIR} -type d -exec chmod 0755 {} \; # find ${DESTDIR} -type d -exec chmod 0755 {} \;
rsync -av --delete ${DESTDIR} ${PUBDIR} # rsync -av --delete ${DESTDIR} ${PUBDIR}
#ask:
# @echo "Press return to publish..."
# @read avariable
# git push --mirror