X-Git-Url: https://git.liburcu.org/?a=blobdiff_plain;f=doc%2Fexamples%2FMakefile.am;h=6828eee1e9c2b96c38676fd49c9e7f8720633abc;hb=3cfaaf1c6325035aeec8e11869cb284ef81d9475;hp=3ae68429a25e06822b0999af01e520b652853de3;hpb=1f2b013ddbde8634c3b3eda921970e37a21ba297;p=urcu.git diff --git a/doc/examples/Makefile.am b/doc/examples/Makefile.am index 3ae6842..6828eee 100644 --- a/doc/examples/Makefile.am +++ b/doc/examples/Makefile.am @@ -123,19 +123,22 @@ SUBDIRS_PROXY = hlist list urcu-flavors wfcqueue rculfqueue \ all-local: @if [ x"$(srcdir)" != x"$(builddir)" ]; then \ cp -pfR $(srcdir)/dist-files $(builddir); \ + chmod -R u+w $(builddir)/dist-files; \ cp -pf $(srcdir)/Makefile.examples.template $(builddir); \ + chmod u+w $(builddir)/Makefile.examples.template; \ for subdir in $(SUBDIRS_PROXY); do \ cp -pfR $(srcdir)/$$subdir $(builddir); \ + chmod -R u+w $(builddir)/$$subdir; \ done; \ fi; \ - if [ x"$(shell echo "$(top_srcdir)" | grep "^/" | wc -l)" = x"1" ]; then \ + if [ x"$(shell echo "$(top_srcdir)" | $(GREP) "^/" | wc -l)" = x"1" ]; then \ echo "Examples: absolute top_srcdir path $(top_srcdir)"; \ rel_src_subdir=""; \ else \ echo "Examples: relative top_srcdir path $(top_srcdir)"; \ rel_src_subdir="../"; \ fi; \ - if [ x"$(shell echo "$(top_builddir)" | grep "^/" | wc -l)" = x"1" ]; then \ + if [ x"$(shell echo "$(top_builddir)" | $(GREP) "^/" | wc -l)" = x"1" ]; then \ echo "Examples: absolute top_builddir path $(top_builddir)"; \ rel_build_subdir=""; \ else \