Skip to content

Commit da91e70

Browse files
vincenzopalazzorustyrussell
authored andcommitted
build: Regenerate the generated file as the default target
When modifying the schema, regenerating the file can be challenging. This change sets the autogenerate file as the default target, m aking the process more convenient and simplifying our workflow. Fixes #6365 Report-by: Dusty Daemon Changelog-None Signed-off-by: Vincenzo Palazzo <[email protected]>
1 parent 4b70736 commit da91e70

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Makefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ ifeq ($(HAVE_POSTGRES),1)
277277
LDLIBS += $(POSTGRES_LDLIBS)
278278
endif
279279

280-
default: show-flags all-programs all-test-programs doc-all default-targets $(PYTHON_GENERATED)
280+
default: show-flags gen all-programs all-test-programs doc-all default-targets $(PYTHON_GENERATED)
281281

282282
ifneq ($(SUPPRESS_GENERATION),1)
283283
FORCE = FORCE
@@ -597,6 +597,8 @@ CHECK_GEN_ALL = \
597597
.msggen.json \
598598
doc/index.rst
599599

600+
gen: $(CHECK_GEN_ALL)
601+
600602
check-gen-updated: $(CHECK_GEN_ALL)
601603
@echo "Checking for generated files being changed by make"
602604
git diff --exit-code HEAD

0 commit comments

Comments
 (0)