You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
541 B
23 lines
541 B
BUILDDIR?=../ungleich-staticcms-build |
|
DESTINATION=ungleichstatic@staticweb.ungleich.ch:/home/services/www/ungleichstatic/staticcms.ungleich.ch/www/u/ |
|
|
|
all: publish |
|
|
|
pull: |
|
git pull |
|
|
|
publish: pull build deploy |
|
|
|
deploy: permissions |
|
rsync -av --delete --exclude .lektor/ $(BUILDDIR)/u/ $(DESTINATION) |
|
rsync -av --delete $(BUILDDIR)/sitemap.xml $(DESTINATION) |
|
|
|
permissions: build |
|
find $(BUILDDIR) -type f -exec chmod 0644 {} \; |
|
find $(BUILDDIR) -type d -exec chmod 0755 {} \; |
|
|
|
build: |
|
lektor build -O $(BUILDDIR) |
|
|
|
clean: |
|
rm -rf $(BUILDDIR)
|
|
|