view Makefile @ 383:e949cab90e86

treesum: FIX: do not include generated .treesum-files when testing. While there: use "path:" instead of "glob:" when excluding the temporary test directory
author Franz Glasner <fzglas.hg@dom66.de>
date Sat, 17 May 2025 15:13:45 +0200
parents bbfcdbd75bfe
children
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