Fix #196 partially: do not remove wrong dirs

This change escapes directory and file names to avoid removing unrelated
directories due to spaces in path names.
This commit is contained in:
Matthias Vogelgesang 2016-03-09 17:34:53 +01:00
parent 5a61b4d2e0
commit 80a513f3fc
1 changed files with 6 additions and 6 deletions

View File

@ -38,16 +38,16 @@ install: $(PACKAGE_STY) $(DOC_PDF)
@cp $(DOC_PDF) $(DOC_DIR)
uninstall:
@rm -f $(addprefix $(INSTALL_DIR)/, $(PACKAGE_STY))
@rmdir $(INSTALL_DIR)
@rm -f $(DOC_DIR)/$(notdir $(DOC_PDF))
@rmdir $(DOC_DIR)
@rm -f "$(addprefix $(INSTALL_DIR)/, $(PACKAGE_STY))"
@rmdir "$(INSTALL_DIR)"
@rm -f "$(DOC_DIR)/$(notdir $(DOC_PDF))"
@rmdir "$(DOC_DIR)"
clean-cache:
@rm -f $(CACHE_DIR)/*
@rm -f "$(CACHE_DIR)/*"
clean-sty:
@rm -f $(PACKAGE_STY)
@rm -f "$(PACKAGE_STY)"
ctan: $(CTAN_CONTENT) ctan-version
@tar --transform "s@\(.*\)@metropolis/\1@" -cf metropolis-$(shell date "+%Y-%m-%d").tar.gz $(CTAN_CONTENT)