Sync gemini makefile
continuous-integration/drone/push Build is failing Details

This commit is contained in:
Sandro - 2023-08-22 21:22:08 +02:00
parent db440a53d6
commit 7492b6d892
Signed by: sandro
GPG Key ID: 3AF5A43A3EECC2E5
1 changed files with 3 additions and 1 deletions

View File

@ -21,7 +21,7 @@ WGET=wget
# rsync
RSYNC=rsync
# -l, --links copy symlinks as symlinks
RSYNC_FLAGS=--links --verbose --recursive --delete --delete-after --delete-excluded --checksum --chmod=ugo=rX
RSYNC_FLAGS=--links --verbose --recursive --delete --delete-after --delete-excluded --checksum --chmod=ugo=rX,u+w
# Verzeichnis, in das exportiert werden soll
DESTDIR?=www-export
@ -86,10 +86,12 @@ endef
.PHONY: www
www: $(XML_CATALOG) $(CONTENT)
mkdir -p $@
$(RSYNC) $(RSYNC_FLAGS) --exclude=".stamp-*" content/static/ content/old-site/ build/ $@
.PHONY: export
export: www
mkdir -p $(DESTDIR)
$(RSYNC) $(RSYNC_FLAGS) --exclude=".git/" www/ $(DESTDIR)/
$(DATESTAMP):