Browse Source

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.
Gibheer 3 years ago
parent
commit
f9a0e79b04
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      Makefile

+ 1
- 1
Makefile View File

@@ -20,7 +20,7 @@ clean:
20 20
 	-rm -r public/*
21 21
 
22 22
 install:
23
-	cp -r public/ $(HTTPDIR)/
23
+	rsync --delete -r public/ $(HTTPDIR)/
24 24
 	find $(HTTPDIR) ! -path $(HTTPDIR) -type d -exec chmod $(DIRMODE) {} +
25 25
 	find $(HTTPDIR) ! -path $(HTTPDIR) -type f -exec chmod $(FILEMODE) {} +
26 26
 	chown -R $(OWNER):$(GROUP) $(HTTPDIR)/