sphinx_galleria/Makefile

22 lines
383 B
Makefile
Raw Normal View History

2021-07-25 01:54:37 +02:00
PYTHON = python3
SRCDIR = .
DISTDIR = ./dist
BUILDDIR = ./build
all: sdist wheel
clean:
rm -rf *.egg-info dist build
sdist:
$(PYTHON) -m build $(SRCDIR) -o $(DISTDIR) -sn
wheel:
$(PYTHON) -m build $(SRCDIR) -o $(BUILDDIR) -wn
install:
pip uninstall -y sphinx-galleria
pip install $(DISTDIR)/sphinx_galleria-`cat $(SRCDIR)/VERSION`.tar.gz
.PHONY: clean sdist wheel install