update makefile for use of git-push
Signed-off-by: Nico Schottelius <nico@ikn.schottelius.org>
This commit is contained in:
parent
693393f2eb
commit
5dc0916324
1 changed files with 14 additions and 9 deletions
23
Makefile
23
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
|
||||
|
||||
|
|
Loading…
Reference in a new issue