Skip to content

Commit 3bb96e2

Browse files
committed
scripts/gen-refs-default.Makefile: fix targets
The default Makefile targets were pointing directly to the generated files, so once generated, they were not refreshed by Makefile. Instead, always invoke REFS_DEFAULT_TARGETS and let generate_refs.py decide when to update (once every 24 hours). Signed-off-by: Daniel Gomez <[email protected]>
1 parent d389d25 commit 3bb96e2

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

scripts/gen-refs-default.Makefile

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
# SPDX-License-Identifier: copyleft-next-0.3.1
22

3-
REF_DEF_OBJS := $(addprefix $(TOPDIR)/workflows/linux/refs/default/, Kconfig.linus Kconfig.next Kconfig.stable)
3+
REFS_DEFAULT_TARGETS := gen_refs_def_mainline
4+
REFS_DEFAULT_TARGETS += gen_refs_def_next
5+
REFS_DEFAULT_TARGETS += gen_refs_def_stable
46
REF_DEF_SRC := $(addprefix $(TOPDIR)/workflows/linux/refs/static/, linus.yaml next.yaml stable.yaml)
57

68
KRELEASES_FORCE := $(if $(filter --force,$(KRELEASES_FORCE)),--force,)
79

8-
$(TOPDIR)/workflows/linux/refs/default/Kconfig.linus: $(TOPDIR)/workflows/linux/refs/static/linus.yaml
10+
gen_refs_def_mainline:
911
$(Q)$(E) "Generating $@..."
1012
$(Q)./scripts/generate_refs.py \
1113
--prefix BOOTLINUX_TREE_LINUS \
@@ -15,7 +17,7 @@ $(TOPDIR)/workflows/linux/refs/default/Kconfig.linus: $(TOPDIR)/workflows/linux/
1517
kreleases \
1618
--moniker mainline
1719

18-
$(TOPDIR)/workflows/linux/refs/default/Kconfig.next: $(TOPDIR)/workflows/linux/refs/static/next.yaml
20+
gen_refs_def_next:
1921
$(Q)$(E) "Generating $@..."
2022
$(Q)./scripts/generate_refs.py \
2123
--prefix BOOTLINUX_TREE_NEXT \
@@ -25,7 +27,7 @@ $(TOPDIR)/workflows/linux/refs/default/Kconfig.next: $(TOPDIR)/workflows/linux/r
2527
kreleases \
2628
--moniker linux-next
2729

28-
$(TOPDIR)/workflows/linux/refs/default/Kconfig.stable: $(TOPDIR)/workflows/linux/refs/static/stable.yaml
30+
gen_refs_def_stable:
2931
$(Q)$(E) "Generating $@..."
3032
$(Q)./scripts/generate_refs.py \
3133
--prefix BOOTLINUX_TREE_STABLE \
@@ -36,9 +38,9 @@ $(TOPDIR)/workflows/linux/refs/default/Kconfig.stable: $(TOPDIR)/workflows/linux
3638
--moniker stable
3739

3840
PHONY += refs-default
39-
refs-default: $(REF_DEF_OBJS) _gen-default-refs-development refs-user-clean
41+
refs-default: $(REFS_DEFAULT_TARGETS) _gen-default-refs-development refs-user-clean
4042

4143
PHONY += _refs-default
42-
_refs-default: $(REF_DEF_OBJS)
44+
_refs-default: $(REFS_DEFAULT_TARGETS)
4345

4446
.PHONY: $(PHONY)

0 commit comments

Comments
 (0)