From 193ed5575e8ffa6dc9193a8526dce00d73a53a42 Mon Sep 17 00:00:00 2001 From: Dan Jones Date: Thu, 6 Nov 2025 21:16:03 -0600 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A5=20Remove=20Makefile=20for=20Jekyll?= =?UTF-8?q?=20build=20and=20deployment?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Makefile | 32 -------------------------------- 1 file changed, 32 deletions(-) delete mode 100644 Makefile diff --git a/Makefile b/Makefile deleted file mode 100644 index dcb8428..0000000 --- a/Makefile +++ /dev/null @@ -1,32 +0,0 @@ -.PHONY: all serve clean - -export PATH := $(HOME)/bin:$(PATH):/usr/local/bin -PORT ?= 4000 -IMAGE=danjones000/danielrayjones/ruby-with-bundler:1.0.1 - -ifeq ($(shell command -v podman 2> /dev/null),) - CMD=docker -else - CMD=podman -endif - -all: serve - -Gemfile.lock: - $(CMD) run --rm -v $(shell pwd):/app -w /app ruby:2.7 sh -c 'gem install bundler:2.0.2 && bundle install' - -.image: Dockerfile Gemfile.lock - $(CMD) build -t $(IMAGE) . - $(CMD) image inspect $(IMAGE) | jq -r '.[0].Id' | tee .image - -_config.local.yml: - touch $@ - -_site/index.html: .image _config.local.yml index.html - $(CMD) run --rm -v $(shell pwd):/app:rw -w /app $(IMAGE) bundle exec jekyll build -c '_config.yml,_config.local.yml' - -serve: _site/index.html - $(CMD) run --rm -it -v $(shell pwd):/app -w /app -p $(PORT):$(PORT) $(IMAGE) bundle exec jekyll serve -H 0.0.0.0 -P "$(PORT)" -c '_config.yml,_config.local.yml' - -clean: - rm -rf _site