Use cp -R instead of cp -a (it's more portable).

M ./libraries/Makefile -3 +3
parent 7a51ca4f
......@@ -338,7 +338,7 @@ binary-dist: $(foreach SUBDIR,$(SUBDIRS),binary-dist.library.$(SUBDIR))
cp gen_contents_index $(BIN_DIST_LIBDIR)
cp index.html $(BIN_DIST_LIBDIR)
cp doc-index.html $(BIN_DIST_LIBDIR)
cp -a stamp $(BIN_DIST_LIBDIR)
cp -pR stamp $(BIN_DIST_LIBDIR)
$(foreach SUBDIR,$(SUBDIRS),binary-dist.library.$(SUBDIR)): \
binary-dist.library.%:
......@@ -347,8 +347,8 @@ binary-dist.library.%:
cd $* && \
cp $*.cabal $(BIN_DIST_LIBDIR)/$* && \
cp LICENSE $(BIN_DIST_LIBDIR)/$* && \
cp -a dist $(BIN_DIST_LIBDIR)/$* && \
(cp -aL include $(BIN_DIST_LIBDIR)/$* || :) && \
cp -R dist $(BIN_DIST_LIBDIR)/$* && \
(cp -RL include $(BIN_DIST_LIBDIR)/$* || :) && \
$(FIND) $(BIN_DIST_LIBDIR)/$*/dist \
\( -name "*_split" -o -name "autogen" \) | xargs rm -rf && \
$(FIND) $(BIN_DIST_LIBDIR)/$*/dist \
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment