From f9a0e79b04c0ac094faedce6746970164af94819 Mon Sep 17 00:00:00 2001 From: Gibheer Date: Wed, 18 Nov 2015 20:52:43 +0100 Subject: [PATCH] use rsync to delete obsolete files This deletes old and stale files, which are not included in the generated content anymore. This keeps the target directory nice and clean. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 4f2ebf7..0ab243f 100644 --- a/Makefile +++ b/Makefile @@ -20,7 +20,7 @@ clean: -rm -r public/* install: - cp -r public/ $(HTTPDIR)/ + rsync --delete -r public/ $(HTTPDIR)/ find $(HTTPDIR) ! -path $(HTTPDIR) -type d -exec chmod $(DIRMODE) {} + find $(HTTPDIR) ! -path $(HTTPDIR) -type f -exec chmod $(FILEMODE) {} + chown -R $(OWNER):$(GROUP) $(HTTPDIR)/