#REPORTS_DIR=/tmp/saegewerk/treepkg-status-cache/ HTDOCS_DIR=/tmp/saegewerker/treepkg-status-cache/ TEMPLATE_DIR=template/ ONLINE_REPOS=saegewerk.wald.intevation.org ONLINE_HTDOCS=/saegewerk/htdocs/ all: build_website #@echo "done." build_website: #@echo "building website..." #rsync -rlzvp --delete kolabbot@hipponoe:$(REPORTS_DIR) $(HTDOCS_DIR) rm -f $(HTDOCS_DIR)index.html find $(HTDOCS_DIR) -type d -print0 | xargs -0 chmod 2775 find $(HTDOCS_DIR) -type f -print0 | xargs -0 chmod 664 python generate_site.py $(TEMPLATE_DIR) $(HTDOCS_DIR) # remove .svn from htdocs/img/ rm -Rf $(HTDOCS_DIR)img/.svn online: # upload data rsync -rlzp --delete $(HTDOCS_DIR) $(ONLINE_REPOS):$(ONLINE_HTDOCS) #@echo "Site online." clean: clean_htdocs cd $(HTDOCS_DIR); rm -Rf * #@echo "clean."