annotate Makefile @ 398:3beac9c85781 default tip

Syntax in pyproject.toml: use unescaped syntax
author Franz Glasner <fzglas.hg@dom66.de>
date Mon, 16 Feb 2026 15:36:17 +0100
parents c033f4072c14
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:
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
20 python -m build
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
f9064130af74 Add a Makefile to help with building distribution packages
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
22
f9064130af74 Add a Makefile to help with building distribution packages
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
23 distclean: clean
f9064130af74 Add a Makefile to help with building distribution packages
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
24 # package build information
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
25 rm -rf dist/ src/*.egg-info
363
f9064130af74 Add a Makefile to help with building distribution packages
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
26
f9064130af74 Add a Makefile to help with building distribution packages
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
27 # 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
28 dist: distclean build