view Makefile @ 390:1ea88e3bec25

On the default trunk begin a pure PEP 517 build configuration. This is Python3 only. Builds with Python2.7 and/or older Python3 versions are supported on the upcoming build-2.7 branch.
author Franz Glasner <fzglas.hg@dom66.de>
date Mon, 16 Feb 2026 13:28:35 +0100
parents bbfcdbd75bfe
children c033f4072c14
line wrap: on
line source

# dev and build helper
# :-
# SPDX-FileCopyrightText: © 2025 Franz Glasner
# SPDX-License-Identifier: BSD-3-Clause
# :-

.PHONY: help clean export-for-dist build distclean dist

help:
	@echo Targets: clean, export-for-dist, build, distclean and dist

clean:
	rm -rf __arch/
	find . -name '*.pyc' -delete

export-for-dist: clean
	hg kwarchive __arch

build:
	python setup.py sdist bdist_wheel
	python _postprocess-sdist.py
	gzip dist/*tar

distclean: clean
# package build information
	rm -rf build/ dist/ src/*.egg-info

# Full clean build for sdist, wheel and docs
dist: distclean build