www.nico.schottelius.org/Makefile

32 lines
648 B
Makefile
Raw Normal View History

DESTDIR=/home/users/nico/privat/rechner/netz/seiten/www.nico.schottelius.org/dst/
PUBDIR=tee.schottelius.org:/home/services/www/nico/www.nico.schottelius.org/www/
BROWSER=conkeror
#IKIWIKI=ikiwikitest.sh
IKIWIKI=ikiwiki
all:
$(IKIWIKI) --refresh --setup ikiwiki.setup
all-unfresh:
$(IKIWIKI) --setup ikiwiki.setup
view: all
$(BROWSER) ${DESTDIR}/index.html
clean: all
rm -rf ${DESTDIR}
ask:
@echo "Press return to publish..."
@read avariable
git push --mirror
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}