diff options
author | Wojtek Kosior <koszko@koszko.org> | 2023-06-19 17:51:42 +0200 |
---|---|---|
committer | Wojtek Kosior <koszko@koszko.org> | 2023-06-19 17:51:42 +0200 |
commit | 282d61506eccebcc3bea9d72f95a3d39b93d54c4 (patch) | |
tree | 230a1e2b04b7fc4fddcd288945254b5f497081b4 | |
parent | 40b0ff64964763e08000a52062166b2f82306541 (diff) | |
download | koszko-org-website-282d61506eccebcc3bea9d72f95a3d39b93d54c4.tar.gz koszko-org-website-282d61506eccebcc3bea9d72f95a3d39b93d54c4.zip |
deal with `guix shell`'s aggressive caching
-rw-r--r-- | Makefile | 22 |
1 files changed, 14 insertions, 8 deletions
@@ -36,9 +36,14 @@ DETERMINE_USER_SHELL_TO_USE = \ wheel: $(GUIX_DEVSHELL) python3 -m build +# Make `guix shell` consider guix.scm outdated when we make modifications to our +# Guix package definition. +guix.scm: guix-module-dir/koszko-org-website.scm + touch guix.scm + # Make a source tarball and repack in a deterministic way so that its # reproducible. -dist src/koszko_org_website/_version.py: +dist src/koszko_org_website/_version.py: guix.scm $(GUIX_DEVSHELL) python3 -m build -s $(RECORD_VER) && \ RELNAME=koszko_org_website-"$$VER" && \ @@ -52,7 +57,7 @@ dist src/koszko_org_website/_version.py: @printf "./dist/koszko_org_website-$(GET_VER).tar.gz\n" # If using bash, modify the prompt to indicate the environment is active. -shell: +shell: guix.scm $(DETERMINE_USER_SHELL_TO_USE); \ case "$$SHELL_TO_USE" in \ *bash*) \ @@ -63,23 +68,24 @@ shell: $(GUIX_DEVSHELL) "$$SHELL_TO_USE" || true;; \ esac -catalogs: +catalogs: guix.scm $(GUIX_DEVSHELL) python3 setup.py compile_catalog -refresh-catalogs: +refresh-catalogs: guix.scm $(GUIX_DEVSHELL) sh -c \ "python3 setup.py extract_messages && python3 setup.py update_catalog && python3 setup.py compile_catalog" -copied-license-files: +copied-license-files: guix.scm $(GUIX_DEVSHELL) python3 setup.py copy_licenses -run-website: src/koszko_org_website/_version.py catalogs copied-license-files +run-website: src/koszko_org_website/_version.py catalogs copied-license-files \ + guix.scm PYTHONPATH=./src $(GUIX_DEVSHELL) python3 -m koszko_org_website -reuse-lint: +reuse-lint: guix.scm $(GUIX_DEVSHELL) reuse lint -mypy-lint: src/koszko_org_website/_version.py +mypy-lint: src/koszko_org_website/_version.py guix.scm PYTHONPATH=./src/ $(GUIX_DEVSHELL) mypy -p koszko_org_website clean-source-tarball-repack: |