Skip to content

Commit

Permalink
make: regen config on edits to config/**/*.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
spiffxp committed Sep 27, 2021
1 parent 4c47c0b commit c48015b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ OUTPUT_BIN_DIR := $(OUTPUT_DIR)/bin
MERGE_CMD := $(OUTPUT_BIN_DIR)/merge
PERIBOLOS_CMD := $(OUTPUT_BIN_DIR)/peribolos

CONFIG_FILES = $(shell find config/ -type f -name '*.yaml')
MERGED_CONFIG := $(OUTPUT_DIR)/gen-config.yaml

# convenience targets for humans
Expand Down Expand Up @@ -70,7 +71,7 @@ $(MERGE_CMD):
mkdir -p "$(OUTPUT_BIN_DIR)"
go build -v -o "$(OUTPUT_BIN_DIR)" ./cmd/merge

$(MERGED_CONFIG): $(MERGE_CMD) config/**/*.yaml
$(MERGED_CONFIG): $(MERGE_CMD) $(CONFIG_FILES)
mkdir -p "$(OUTPUT_DIR)"
$(MERGE_CMD) \
--merge-teams \
Expand Down

0 comments on commit c48015b

Please sign in to comment.