Skip to content

Commit

Permalink
build: Regenerate the generated file as the default target
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
vincenzopalazzo authored and rustyrussell committed Jul 10, 2023
1 parent d7b961d commit 2c1d579
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ ifeq ($(HAVE_POSTGRES),1)
LDLIBS += $(POSTGRES_LDLIBS)
endif

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

ifneq ($(SUPPRESS_GENERATION),1)
FORCE = FORCE
Expand Down Expand Up @@ -597,6 +597,8 @@ CHECK_GEN_ALL = \
.msggen.json \
doc/index.rst

gen: $(CHECK_GEN_ALL)

check-gen-updated: $(CHECK_GEN_ALL)
@echo "Checking for generated files being changed by make"
git diff --exit-code HEAD
Expand Down

0 comments on commit 2c1d579

Please sign in to comment.