Skip to content

Commit

Permalink
Clean up Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
trevorbaca committed Feb 24, 2025
1 parent 0d54c58 commit 3a5150f
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.PHONY: black-check black-reformat build clean flake8 install isort-check \
isort-reformat mypy pytest reformat release lint test
.PHONY: black-check black-reformat build clean flake8 gh-pages install \
isort-check isort-reformat mypy pytest reformat release lint test

black-check:
black --check --diff .
Expand All @@ -22,13 +22,18 @@ flake8:

gh-pages:
rm -rf gh-pages/
git clone --depth=1 https://github.com/Abjad/rmakers.github.io.git gh-pages
rsync -rtv --delete --exclude=.git docs/build/html/ gh-pages/
git clone --depth=1 https://github.com/Abjad/rmakers.git gh-pages
cd gh-pages && \
touch .nojekyll && \
if git checkout gh-pages; then \
echo "Using existing gh-pages branch"; \
else \
git checkout --orphan gh-pages && git rm -rf .; \
fi
rsync -rtv --delete --exclude=.git docs/build/html/ gh-pages/
cd gh-pages && touch .nojekyll && \
git add --all . && \
git commit --allow-empty -m "Update docs" && \
git push origin master
git push --force origin gh-pages
rm -rf gh-pages/

isort-check:
Expand Down

0 comments on commit 3a5150f

Please sign in to comment.