annotate Makefile @ 363:f9064130af74

Add a Makefile to help with building distribution packages
author Franz Glasner <fzglas.hg@dom66.de>
date Fri, 04 Apr 2025 19:05:54 +0200
parents
children bbfcdbd75bfe
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 # :-
f9064130af74 Add a Makefile to help with building distribution packages
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
3 # SPDX-FileCopyrightText: © 2025 Franz Glasner
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
f9064130af74 Add a Makefile to help with building distribution packages
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
7 clean:
f9064130af74 Add a Makefile to help with building distribution packages
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
8 rm -rf __arch/
f9064130af74 Add a Makefile to help with building distribution packages
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
9 find . -name '*.pyc' -delete
f9064130af74 Add a Makefile to help with building distribution packages
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
10
f9064130af74 Add a Makefile to help with building distribution packages
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
11 export-for-dist: clean
f9064130af74 Add a Makefile to help with building distribution packages
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
12 hg kwarchive __arch
f9064130af74 Add a Makefile to help with building distribution packages
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
13
f9064130af74 Add a Makefile to help with building distribution packages
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
14 build:
f9064130af74 Add a Makefile to help with building distribution packages
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
15 python setup.py sdist bdist_wheel
f9064130af74 Add a Makefile to help with building distribution packages
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
16 python _postprocess-sdist.py
f9064130af74 Add a Makefile to help with building distribution packages
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
17 gzip dist/*tar
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 distclean: clean
f9064130af74 Add a Makefile to help with building distribution packages
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
20 # package build information
f9064130af74 Add a Makefile to help with building distribution packages
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
21 rm -rf build/ dist/ src/*.egg-info
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 # 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
24 dist: distclean build