annotate Makefile @ 407:d3429477cd55 build-2.7

MERGE: current trunk
author Franz Glasner <fzglas.hg@dom66.de>
date Tue, 17 Feb 2026 16:19:53 +0100
parents 6930917a3752 deabdfed3b96
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
363
f9064130af74 Add a Makefile to help with building distribution packages
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
1 # dev and build helper
f9064130af74 Add a Makefile to help with building distribution packages
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
2 # :-
397
c033f4072c14 FIX: _postprocess-sdist now works for compressed archives and configuration in pyproject.toml.
Franz Glasner <fzglas.hg@dom66.de>
parents: 364
diff changeset
3 # SPDX-FileCopyrightText: © 2025-2026 Franz Glasner
363
f9064130af74 Add a Makefile to help with building distribution packages
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
4 # SPDX-License-Identifier: BSD-3-Clause
f9064130af74 Add a Makefile to help with building distribution packages
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
5 # :-
f9064130af74 Add a Makefile to help with building distribution packages
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
6
364
bbfcdbd75bfe Put a "help" target as default target into the Makefile
Franz Glasner <fzglas.hg@dom66.de>
parents: 363
diff changeset
7 .PHONY: help clean export-for-dist build distclean dist
bbfcdbd75bfe Put a "help" target as default target into the Makefile
Franz Glasner <fzglas.hg@dom66.de>
parents: 363
diff changeset
8
bbfcdbd75bfe Put a "help" target as default target into the Makefile
Franz Glasner <fzglas.hg@dom66.de>
parents: 363
diff changeset
9 help:
bbfcdbd75bfe Put a "help" target as default target into the Makefile
Franz Glasner <fzglas.hg@dom66.de>
parents: 363
diff changeset
10 @echo Targets: clean, export-for-dist, build, distclean and dist
bbfcdbd75bfe Put a "help" target as default target into the Makefile
Franz Glasner <fzglas.hg@dom66.de>
parents: 363
diff changeset
11
363
f9064130af74 Add a Makefile to help with building distribution packages
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
12 clean:
f9064130af74 Add a Makefile to help with building distribution packages
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
13 rm -rf __arch/
f9064130af74 Add a Makefile to help with building distribution packages
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
14 find . -name '*.pyc' -delete
f9064130af74 Add a Makefile to help with building distribution packages
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
15
f9064130af74 Add a Makefile to help with building distribution packages
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
16 export-for-dist: clean
f9064130af74 Add a Makefile to help with building distribution packages
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
17 hg kwarchive __arch
f9064130af74 Add a Makefile to help with building distribution packages
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
18
f9064130af74 Add a Makefile to help with building distribution packages
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
19 build:
399
669dd560f21a MERGE: IGNORE: current trunk
Franz Glasner <fzglas.hg@dom66.de>
parents: 397
diff changeset
20 python setup.py sdist bdist_wheel
363
f9064130af74 Add a Makefile to help with building distribution packages
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
21 python _postprocess-sdist.py
401
e4d71f20d908 Use "gzip --best" compression when recompressing the sdist after post-processing
Franz Glasner <fzglas.hg@dom66.de>
parents: 399
diff changeset
22 gzip --best dist/*tar
363
f9064130af74 Add a Makefile to help with building distribution packages
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
23
f9064130af74 Add a Makefile to help with building distribution packages
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
24 distclean: clean
f9064130af74 Add a Makefile to help with building distribution packages
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
25 # package build information
402
90e1d34d977f FIX: wrong for egg-info directory in the Makefile
Franz Glasner <fzglas.hg@dom66.de>
parents: 401
diff changeset
26 rm -rf build/ dist/ *.egg-info
363
f9064130af74 Add a Makefile to help with building distribution packages
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
27
f9064130af74 Add a Makefile to help with building distribution packages
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
28 # Full clean build for sdist, wheel and docs
f9064130af74 Add a Makefile to help with building distribution packages
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
29 dist: distclean build