]> git.ipfire.org Git - thirdparty/patchwork.git/commit
Add a Makefile
authorStephen Finucane <stephen@that.guru>
Thu, 13 Sep 2018 17:13:20 +0000 (11:13 -0600)
committerStephen Finucane <stephen@that.guru>
Sun, 7 Jun 2026 18:05:23 +0000 (19:05 +0100)
commit398cc2cc8baafff1931a7453f50f3e783d789c34
treea096787e8759e846f2c7ac47b5199a100fe7a09d
parent4dda57505e7bdfff0273c9fa66eef199db45ce08
Add a Makefile

Time to go old school. When using Docker, we can't simply use tox or
manage.py command as commands should run inside the container and not on
the host. To resolve this, we recommend using 'docker-compose run --rm
web tox', which will run tox in the container. Having to remember these
rather esoteric commands is annoying though (particularly when I haven't
run it recently and therefore can't find the command with '<Ctrl>+R'). A
series of make targets make this a heck of a lot easier for us.

Note that this isn't ideal and won't entirely remove the need to run the
above command. This is mostly due to how make is designed: namely, we
need to pass positional arguments but each positional argument in make
should be a target. This does, however, cover the biggest use cases and
is therefore worth doing.

Signed-off-by: Stephen Finucane <stephen@that.guru>
.gitignore
Makefile [new file with mode: 0644]