mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-09-30 22:11:59 -09:00
docs/manual: ditch redundant -f 'rm' flag
The value of the RM variable in make is 'rm -f' [0], thus the additional
-f is redundant. Avoid it on the docs to avoid developers taking it as a
good example to follow.
[0] https://www.gnu.org/software/make/manual/make.html#index-RM
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
(cherry picked from commit 9a3d4e3818)
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
committed by
Peter Korsgaard
parent
61acdc6047
commit
5380a3f3ae
@@ -78,7 +78,7 @@ Do not align the +=+ signs.
|
|||||||
+
|
+
|
||||||
---------------------
|
---------------------
|
||||||
define LIBFOO_REMOVE_DOC
|
define LIBFOO_REMOVE_DOC
|
||||||
$(RM) -fr $(TARGET_DIR)/usr/share/libfoo/doc \
|
$(RM) -r $(TARGET_DIR)/usr/share/libfoo/doc \
|
||||||
$(TARGET_DIR)/usr/share/man/man3/libfoo*
|
$(TARGET_DIR)/usr/share/man/man3/libfoo*
|
||||||
endef
|
endef
|
||||||
---------------------
|
---------------------
|
||||||
@@ -118,7 +118,7 @@ YES:
|
|||||||
---------------------
|
---------------------
|
||||||
ifneq ($(BR2_LIBFOO_INSTALL_DATA),y)
|
ifneq ($(BR2_LIBFOO_INSTALL_DATA),y)
|
||||||
define LIBFOO_REMOVE_DATA
|
define LIBFOO_REMOVE_DATA
|
||||||
$(RM) -fr $(TARGET_DIR)/usr/share/libfoo/data
|
$(RM) -r $(TARGET_DIR)/usr/share/libfoo/data
|
||||||
endef
|
endef
|
||||||
LIBFOO_POST_INSTALL_TARGET_HOOKS += LIBFOO_REMOVE_DATA
|
LIBFOO_POST_INSTALL_TARGET_HOOKS += LIBFOO_REMOVE_DATA
|
||||||
endif
|
endif
|
||||||
@@ -128,7 +128,7 @@ NO:
|
|||||||
+
|
+
|
||||||
---------------------
|
---------------------
|
||||||
define LIBFOO_REMOVE_DATA
|
define LIBFOO_REMOVE_DATA
|
||||||
$(RM) -fr $(TARGET_DIR)/usr/share/libfoo/data
|
$(RM) -r $(TARGET_DIR)/usr/share/libfoo/data
|
||||||
endef
|
endef
|
||||||
|
|
||||||
ifneq ($(BR2_LIBFOO_INSTALL_DATA),y)
|
ifneq ($(BR2_LIBFOO_INSTALL_DATA),y)
|
||||||
|
|||||||
Reference in New Issue
Block a user