- Create subdirectories for each company (files/, valon/) - Move company-specific resumes and cover letters to their directories - Update Makefile to support FILE_NAME paths (e.g., files/resume-name) - Improve clean target to recursively find .log files - Update CLAUDE.md with new directory structure documentation - Add examples for building PDFs from subdirectories - Document cover letter placement and usage This improves organization as more job-specific resumes accumulate. Files can now be organized by company for easier management. Makefile usage: make resume # root directory (default) make resume FILE_NAME=files/paul-halvorsen-files-backend-engineer make resume FILE_NAME=valon/paul-halvorsen-valon-software-engineer Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
39 lines
943 B
Makefile
39 lines
943 B
Makefile
USER=paul
|
|
FILE_NAME?=paul-halvorsen-resume
|
|
|
|
NAME=build-paul-resume
|
|
CONTAINER_NAME=${NAME}-container
|
|
|
|
USER_ID=$(shell id -u ${USER})
|
|
GROUP_ID=$(shell id -g ${USER})
|
|
|
|
CONTAINER_EXISTS=0
|
|
ifneq ("$(shell podman images -q ${NAME} 2> /dev/null)","")
|
|
CONTAINER_EXISTS=1
|
|
endif
|
|
|
|
resume: .podman-build
|
|
podman run --rm \
|
|
--volume "$(realpath .)":/data \
|
|
--name ${CONTAINER_NAME} \
|
|
${NAME} \
|
|
${FILE_NAME}.md -f markdown+yaml_metadata_block --template templates/jb2resume.latex -o ${FILE_NAME}.pdf
|
|
@echo "✓ Generated ${FILE_NAME}.pdf"
|
|
|
|
.podman-build:
|
|
if [ ${CONTAINER_EXISTS} -ne 1 ]; then podman build -t ${NAME} . && echo "" > .podman-build; fi
|
|
|
|
cleanpaper:
|
|
rm -f ${FILE_NAME}.pdf
|
|
|
|
cleanpodman:
|
|
@echo "Cleanup files and podman"
|
|
if [ ${CONTAINER_EXISTS} -ne 0 ]; then podman image rm -f ${NAME} && rm -f .podman-build; fi
|
|
|
|
clean:
|
|
find . -name "*.log" -type f -delete
|
|
|
|
cleanall: clean cleanpaper cleanpodman
|
|
@echo "Cleanup everything"
|
|
|