diff --git a/Makefile b/Makefile index 2d09a85..894a124 100644 --- a/Makefile +++ b/Makefile @@ -18,13 +18,16 @@ config: cp docs/config.yaml config.bak # Check the OS and set the sed command accordingly if [ "$(uname)" == "Darwin" ]; then \ - sed_command="sed -i ''"; \ + sed_command="sed -i .bak"; \ else \ sed_command="sed -i"; \ fi + # Debug the sed command + echo "Using sed command: $(sed_command)" + # Replace "BRANCH" in config.yaml with the value of VERSION - $(sed_command) "s/BRANCH/$(VERSION)/g" docs/config.yaml - + $(sed_command) 's/BRANCH/$(VERSION)/g' docs/config.yaml + build: config echo $(VERSIONS) cd docs && hugo.old --minify --theme book --destination="$(OUTPUT)/$(PRODUCT)/$(VERSION)" \