Skip to content

Commit 6116104

Browse files
committed
Mark targets as .PHONY at once
Changes in this patch: - Keep all targets that are to be marked .PHONY in a variable, PHONY. - Add .PHONY: $(PHONY) to mark them properly. Link: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/4f1933620f57145212cdbb1ac6ce099eeeb21c5a Signed-off-by: Alexey Gladkov <[email protected]>
1 parent 0108841 commit 6116104

File tree

27 files changed

+34
-39
lines changed

27 files changed

+34
-39
lines changed

features/add-modules/rules.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# SPDX-License-Identifier: GPL-3.0-or-later
2-
.PHONY: put-modules
2+
PHONY += put-modules
33

44
put-modules: create
55
@$(VMSG) "Putting modules ..."

features/add-udev-rules/rules.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# SPDX-License-Identifier: GPL-3.0-or-later
22
PUT_UDEV_RULES += $(SYSTEM_UDEV_RULES)
33

4-
.PHONY: put-udev-rules
4+
PHONY += put-udev-rules
55

66
put-udev-rules: create
77
@$(VMSG) "Putting udev rules ..."

features/bootconfig/rules.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# SPDX-License-Identifier: GPL-3.0-or-later
2-
.PHONY: bootconfig
2+
PHONY += bootconfig
33

44
bootconfig: $(call if-feature,compress)
55
@$(VMSG) "Adding bootconfig ..."

features/cleanup/rules.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# SPDX-License-Identifier: GPL-3.0-or-later
2-
.PHONY: clean
2+
PHONY += clean
33

44
clean: install
55
@$(VMSG) "Removing work directory ..."

features/compress/config.mk

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,3 @@
22
COMPRESS_IMAGE = $(FEATURESDIR)/compress/bin/compress-image
33
COMPRESS ?= gzip
44

5-
.PHONY: compress

features/compress/rules.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# SPDX-License-Identifier: GPL-3.0-or-later
2-
.PHONY: compress
2+
PHONY += compress
33

44
compress: pack
55
@$(VMSG) "Compressing image ..."

features/depmod-image/rules.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# SPDX-License-Identifier: GPL-3.0-or-later
2-
.PHONY: depmod-image
2+
PHONY += depmod-image
33

44
depmod-image: create
55
@$(VMSG) "Generating module dependencies in image ..."

features/guestfs/rules.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ PUT_FEATURE_PROGS += $(GUESTFS_PROGS)
1010
PUT_FEATURE_PROGS_WILDCARD += $(GUESTFS_PROGS_PATTERNS)
1111

1212
# libugestfs doesn't work with busybox's swapon, so replace it
13-
.PHONY: guestfs
13+
PHONY += guestfs
1414

1515
guestfs: create
1616
@put-file -f "$(ROOTDIR)" /sbin/swapon

features/locales/rules.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ LANG = $(call enforce_utf8,$(firstword $(LOCALES)))
1010

1111
$(call set-sysconfig,init,LANG,$(LANG))
1212

13-
.PHONY: locales
13+
PHONY += locales
1414

1515
locales: create
1616
@$(VMSG) "Adding locales and l10n..."

features/ucode/rules.mk

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# SPDX-License-Identifier: GPL-3.0-or-later
2-
3-
.PHONY: ucode
2+
PHONY += ucode
43

54
ucode: $(call if-feature,compress)
65
@$(VMSG) "Adding CPU microcode ..."

0 commit comments

Comments
 (0)