X-Git-Url: https://git.lttng.org/?p=urcu.git;a=blobdiff_plain;f=doc%2Fexamples%2FMakefile.am;h=313f5215b254f908eeab9502f455ef67ef3a41b6;hp=028da67b7b4370f304b0c62472db6b8d616a70bf;hb=074c3a1bde68f3d2607c5c4711ec456dbdb05bce;hpb=c17913dcf2555d15e3006a799dd06dbaf2cd2ee2 diff --git a/doc/examples/Makefile.am b/doc/examples/Makefile.am index 028da67..313f521 100644 --- a/doc/examples/Makefile.am +++ b/doc/examples/Makefile.am @@ -122,27 +122,27 @@ SUBDIRS_PROXY = hlist list urcu-flavors wfcqueue rculfqueue \ # Copies are for VPATH build support. all-local: @if [ x"$(srcdir)" != x"$(builddir)" ]; then \ - cp -fR $(srcdir)/dist-files $(builddir); \ - cp -f $(srcdir)/Makefile.examples.template $(builddir); \ + cp -pfR $(srcdir)/dist-files $(builddir); \ + cp -pf $(srcdir)/Makefile.examples.template $(builddir); \ for subdir in $(SUBDIRS_PROXY); do \ - cp -fR $(srcdir)/$$subdir $(builddir); \ + cp -pfR $(srcdir)/$$subdir $(builddir); \ 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 \ echo "Examples: relative top_builddir path $(top_builddir)"; \ rel_build_subdir="../"; \ fi; \ - $(MAKE) -f dist-files/Makefile AM_CC="$(CC)" AM_CPPFLAGS="$(CPPFLAGS) -I$$rel_src_subdir/$(top_srcdir)/ -I$$rel_build_subdir$(top_builddir)/" AM_CFLAGS='$(CFLAGS)' AM_LDFLAGS='$(LDFLAGS) -L../../../.libs/ -Wl,-rpath="$(PWD)/../../.libs/"' $(AM_MAKEFLAGS) all; + $(MAKE) -f dist-files/Makefile AM_CC="$(CC)" AM_CPPFLAGS="$(CPPFLAGS) -I$$rel_src_subdir/$(top_srcdir)/ -I$$rel_build_subdir$(top_builddir)/" AM_CFLAGS='$(CFLAGS)' AM_LDFLAGS='$(LDFLAGS) -L../../../.libs/ -Wl,-rpath "$(PWD)/../../.libs/"' $(AM_MAKEFLAGS) all; clean-local: @$(MAKE) -f dist-files/Makefile $(AM_MAKEFLAGS) clean; \