annotate Makefile @ 399:669dd560f21a build-2.7 tip

MERGE: IGNORE: current trunk
author Franz Glasner <fzglas.hg@dom66.de>
date Mon, 16 Feb 2026 18:49:44 +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 # :-
399
669dd560f21a MERGE: IGNORE: current trunk
Franz Glasner <fzglas.hg@dom66.de>
parents: 397
diff changeset
3 # SPDX-FileCopyrightText: © 2025 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
399
669dd560f21a MERGE: IGNORE: current trunk
Franz Glasner <fzglas.hg@dom66.de>
parents: 397
diff changeset
22 gzip 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
399
669dd560f21a MERGE: IGNORE: current trunk
Franz Glasner <fzglas.hg@dom66.de>
parents: 397
diff changeset
26 rm -rf build/ dist/ src/*.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