Skip to content
This repository has been archived by the owner on Jan 6, 2023. It is now read-only.

Commit

Permalink
[makefile] Don't reset autogenerate config repo
Browse files Browse the repository at this point in the history
Only create it if one does not exist. This allows the user to make
changes in the clr-distro-factory fake config repository to better
interact with the tool.

Signed-off-by: Murilo Belluzzo <[email protected]>
  • Loading branch information
mbelluzzo-intel committed Jun 25, 2019
1 parent 85fa159 commit dc9c933
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -58,16 +58,17 @@ WORK_DIR := $(CURDIR)/builder/work
$(MIXER_DIR) $(STAGING_DIR) $(WORK_DIR):
@mkdir -p $@

config: $(MIXER_DIR) $(STAGING_DIR)
@rm -rf $(CONFIG_REPO)
@mkdir -p $(CONFIG_REPO)
@git init $(CONFIG_REPO)
@echo "DISTRO_NAME=$(NAMESPACE)" > $(CONFIG_REPO)/config.sh
@echo "DISTRO_URL=$(DISTRO_URL)" >> $(CONFIG_REPO)/config.sh
@echo "MIXER_DIR=$(MIXER_DIR)" >> $(CONFIG_REPO)/config.sh
@echo "STAGING_DIR=$(STAGING_DIR)" >> $(CONFIG_REPO)/config.sh
@git -C $(CONFIG_REPO) add config.sh
@git -C $(CONFIG_REPO) commit -m "Fake config.sh"
$(CONFIG_REPO):
@mkdir -p $@
@git init $@
@echo "DISTRO_NAME=$(NAMESPACE)" > $@/config.sh
@echo "DISTRO_URL=$(DISTRO_URL)" >> $@/config.sh
@echo "MIXER_DIR=$(MIXER_DIR)" >> $@/config.sh
@echo "STAGING_DIR=$(STAGING_DIR)" >> $@/config.sh
@git -C $@ add config.sh
@git -C $@ commit -m "Fake config.sh"

config: $(MIXER_DIR) $(STAGING_DIR) $(CONFIG_REPO)

.NOTPARALLEL: $(pipelines)
.PHONY: $(pipelines)
Expand Down

0 comments on commit dc9c933

Please sign in to comment.