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)/