diff --git a/Makefile b/Makefile index bd5da3f80f92efbb45b2aee3256b1bf8ee1eb02f..a5cad0ef9a1881de77c6b6d6fe096e21c6048a3f 100644 --- a/Makefile +++ b/Makefile @@ -130,8 +130,8 @@ $(DISTARCHIVE): $(SOURCES) $(LATEXFILES) $(MAKES) $(TESTS) \ $(USEREXAMPLE_SOURCES) $(DOCS) $(PDFSOURCES) $(MISCELLANEOUS) \ $(EXAMPLES) $(VERSION) DIR=`mktemp -d` && \ - cp --verbose $(TDSARCHIVE) "$$DIR" && \ - cp --parents --verbose $^ "$$DIR" && \ + cp -v $(TDSARCHIVE) "$$DIR" && \ + tar c $^ | tar xvC "$$DIR" && \ (cd "$$DIR" && zip -r -v -nw $@ *) && \ mv "$$DIR"/$@ . && rm -rf "$$DIR" @@ -139,8 +139,8 @@ $(DISTARCHIVE): $(SOURCES) $(LATEXFILES) $(MAKES) $(TESTS) \ $(CTANARCHIVE): $(SOURCES) $(MAKES) $(TESTS) $(EXAMPLES) \ $(MISCELLANEOUS) $(EPSLOGOS) $(DOCS) $(VERSION) DIR=`mktemp -d` && mkdir -p "$$DIR/fithesis" && \ - cp --verbose $(TDSARCHIVE) "$$DIR" && \ - cp --parents --verbose $^ "$$DIR/fithesis" && \ + cp -v $(TDSARCHIVE) "$$DIR" && \ + tar c $^ | tar xvC "$$DIR/fithesis" && \ printf '.PHONY: implode\nimplode:\n' > \ "$$DIR/fithesis/example/mu/Makefile" && \ (cd "$$DIR" && zip -r -v -nw $@ *) && \ @@ -166,11 +166,11 @@ install-base: @# Class, locale, style and logo files mkdir -p "$(to)/tex/latex/fithesis" - cp --parents --verbose $(LATEXFILES) "$(to)/tex/latex/fithesis" + tar c $(LATEXFILES) | tar xvC "$(to)/tex/latex/fithesis" @# Source files mkdir -p "$(to)/source/latex/fithesis" - cp --parents --verbose $(SOURCES) "$(to)/source/latex/fithesis" + tar c $(SOURCES) | tar xvC "$(to)/source/latex/fithesis" @# Rebuild the hash [ "$(nohash)" = "true" ] || texhash @@ -189,7 +189,7 @@ install-docs: @# Documentation mkdir -p "$(to)/doc/latex/fithesis" - cp --parents --verbose $(DOCS) "$(to)/doc/latex/fithesis" + tar c $(DOCS) | tar xvC "$(to)/doc/latex/fithesis" @# Rebuild the hash [ "$(nohash)" = "true" ] || texhash