ucloud-docs/Makefile

18 lines
437 B
Makefile
Raw Normal View History

2019-10-10 16:27:42 +00:00
BUILDDIR=ucloud-docs-build
DESTINATION=ungleichstatic@staticweb.ungleich.ch:/home/services/www/ungleichstatic/staticcms.ungleich.ch/www/ucloud/
all: publish
pull:
git pull
publish: pull build permissions
rsync -av --exclude .lektor/ $(BUILDDIR)/ $(DESTINATION)
permissions: build
find $(BUILDDIR) -type f -exec chmod 0644 {} \;
find $(BUILDDIR) -type d -exec chmod 0755 {} \;
build:
cd lektor && lektor build -O ../$(BUILDDIR)