Skip to content

Commit

Permalink
fix up makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
danpilch committed Feb 2, 2025
1 parent 24903f3 commit bf46b39
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 21 deletions.
13 changes: 10 additions & 3 deletions resume/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ build: clean
make4ht --utf8 -a debug -B .build -f html5+inlinecss --output-dir ./output/ -l resume.tex "xelatex"

# Cleanup make4ht build files
rm -rf resume.tex.bak resume_tmp.tex *.bak resume_tmp.tex *.aux *.log *.dvi *.4ct *.4tc *.lg *.idv *.tmp *.css *.html *.xref *.md
#rm -rf resume.tex.bak resume_tmp.tex *.bak resume_tmp.tex *.aux *.log *.dvi *.4ct *.4tc *.lg *.idv *.tmp *.css *.html *.xref *.md

# Build Markdown (requires Pandoc in the container)
sed -E \
Expand All @@ -58,6 +58,9 @@ build: clean
docker.io/danpilch/cv-build:v5 \
pandoc -s resume_tmp.tex -o ./output/danpilch-resume-${DATE}.md

# Run clean at the end
$(MAKE) clean

.PHONY: release
release: description = Create a GitHub release for the new version
release: clean
Expand All @@ -84,12 +87,16 @@ build-txt-local:
### Utility

.PHONY: clean
clean: description = Clean build output dir
clean: description = Clean build dir
clean:
rm -rf resume.tex.bak resume_tmp.tex *.bak resume_tmp.tex *.aux *.log *.dvi *.4ct *.4tc *.lg *.idv *.tmp *.css *.html *.xref *.md
rm -rf ./output/*
rm -rf ./.build/*

.PHONY: clean-output
clean-output: description = Clean build dir
clean-output:
rm -rf ./output/*

.PHONY: view
view: description = View generated CV PDF
view:
Expand Down
19 changes: 1 addition & 18 deletions resume/output/.gitignore
Original file line number Diff line number Diff line change
@@ -1,18 +1 @@
*.log
*.pdf
*.out
.DS_Store
*.4ct
*.4tc
*.aux
*.css
*.dvi
*.html
*.idv
*.lg
*.tmp
*.xref
*.aux
*.docx
*.txt
*.md
*

0 comments on commit bf46b39

Please sign in to comment.