From 788bbb55ed8690b0aea66338fc073288195fdf1f Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Mon, 2 May 2016 19:40:05 +0800 Subject: [PATCH] automake: use :: rule for adding target Signed-off-by: Kefu Chai --- Makefile.am | 2 +- man/Makefile.am | 2 +- selinux/Makefile.am | 4 ++-- src/Makefile.am | 8 ++++---- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/Makefile.am b/Makefile.am index 81cb29038c68e..81b772734517f 100644 --- a/Makefile.am +++ b/Makefile.am @@ -72,7 +72,7 @@ check_SCRIPTS = \ # "make distclean" both runs this and recurses into src/gtest, if # gtest is in DIST_SUBDIRS. Take extra care to not fail when # effectively cleaned twice. -clean-local: +clean-local:: @if test -e src/gmock/Makefile; then \ echo "Making clean in src/gmock"; \ cd src/gmock && $(MAKE) $(AM_MAKEFLAGS) clean; \ diff --git a/man/Makefile.am b/man/Makefile.am index 40506babd5e05..710d6ea005bfe 100644 --- a/man/Makefile.am +++ b/man/Makefile.am @@ -24,7 +24,7 @@ sphinx-build.stamp: ${SPHINX_BUILD} -b man -d doctrees -c $(top_srcdir)/man $(top_srcdir)/doc/man $(top_builddir)/man; \ fi -clean-local: +clean-local:: @rm -rf doctrees MAINTAINERCLEANFILES = $(dist_man_MANS) diff --git a/selinux/Makefile.am b/selinux/Makefile.am index 280e7ecd4be6d..a4281c11ac6aa 100644 --- a/selinux/Makefile.am +++ b/selinux/Makefile.am @@ -10,9 +10,9 @@ ceph.pp: ceph.te ceph.fc ceph.if if ENABLE_SERVER if WITH_SELINUX -all-local: ceph.pp +all-local:: ceph.pp -install-exec-local: +install-exec-local:: $(INSTALL) -d $(SELINUXROOT)/packages $(INSTALL) -m 644 ceph.pp $(SELINUXROOT)/packages/ $(INSTALL) -d $(SELINUXROOT)/devel/include/contrib diff --git a/src/Makefile.am b/src/Makefile.am index a11325e7feda6..a4cf68b797d30 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -316,7 +316,7 @@ endif # local targets -all-local: $(LOCAL_ALL) -clean-local: $(LOCAL_CLEAN) -install-exec-local: $(LOCAL_INSTALLEXEC) -install-data-local: $(LOCAL_INSTALLDATA) +all-local:: $(LOCAL_ALL) +clean-local:: $(LOCAL_CLEAN) +install-exec-local:: $(LOCAL_INSTALLEXEC) +install-data-local:: $(LOCAL_INSTALLDATA)