Skip to content

Commit d6a140c

Browse files
committed
test
1 parent 5613a72 commit d6a140c

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

GNUmakefile

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -184,12 +184,16 @@ prepare-temp:
184184
@echo "Setting up temporary workspace for conversion at $(TEMP_DIR)..."
185185
@rm -rf $(TEMP_DIR)
186186
@mkdir -p $(TEMP_DIR)/mmv1 $(TEMP_DIR)/tpgtools $(TEMP_DIR)/tools
187-
@cp -R ./mmv1/ $(TEMP_DIR)/mmv1/
188-
@cp -R ./tpgtools/ $(TEMP_DIR)/tpgtools/
189-
@cp -R ./tools/ $(TEMP_DIR)/tools/
190-
@echo "Building and running resource template converter in temp..."
187+
@echo "Copying files to $(TEMP_DIR)..."
188+
@cp -R ./mmv1/. $(TEMP_DIR)/mmv1/
189+
@cp -R ./tpgtools/. $(TEMP_DIR)/tpgtools/
190+
@cp -R ./tools/. $(TEMP_DIR)/tools/
191+
@echo "Listing contents of $(TEMP_DIR)/tools:"
192+
@ls -la $(TEMP_DIR)/tools
193+
@echo "Listing contents of $(TEMP_DIR)/tools/resource-template-converter:"
194+
@ls -la $(TEMP_DIR)/tools/resource-template-converter || echo "$(TEMP_DIR)/tools/resource-template-converter not found after copy"
191195
@echo "Building resource template converter in temp..."
192-
cd $(TEMP_DIR)/tools/resource-template-converter && go env -w GO111MODULE=on && go mod tidy && go build -v -o $(TEMP_DIR)/tools/convert-resource-template .
196+
cd $(TEMP_DIR)/tools/resource-template-converter && go env -w GO111MODULE=on && go mod tidy && go build -v -o $(TEMP_DIR)/tools/convert-resource-template . && echo "BUILD SUCCEEDED" || (echo "BUILD FAILED"; exit 1)
193197
@echo "Build finished, running converter..."
194198
@ls -la $(TEMP_DIR)/tools/convert-resource-template
195199
@$(TEMP_DIR)/tools/convert-resource-template convert-resource-template $(TEMP_DIR)

0 commit comments

Comments
 (0)